github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/build/_fixtures/coke/main.go (about)

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