github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/genny/fix/_fixtures/buffaloPre0_18web/main.go (about) 1 package main 2 3 import ( 4 "coke/actions" 5 "log" 6 ) 7 8 // main is the starting point for your Buffalo application. 9 // You can feel free and add to this `main` method, change 10 // what it does, etc... 11 // All we ask is that, at some point, you make sure to 12 // call `app.Serve()`, unless you don't want to start your 13 // application that is. :) 14 func main() { 15 app := actions.App() 16 if err := app.Serve(); err != nil { 17 log.Fatal(err) 18 } 19 } 20 21 /* 22 # Notes about `main.go` 23 24 ## SSL Support 25 26 We recommend placing your application behind a proxy, such as 27 Apache or Nginx and letting them do the SSL heavy lifting 28 for you. https://gobuffalo.io/en/docs/proxy 29 30 ## Buffalo Build 31 32 When `buffalo build` is run to compile your binary, this `main` 33 function will be at the heart of that binary. It is expected 34 that your `main` function will start your application using 35 the `app.Serve()` method. 36 37 */