github.com/jasonish/buffalo@v0.8.2-0.20170413145823-bacbdd415f1b/examples/html-resource/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "log" 6 "net/http" 7 "os" 8 9 "github.com/gobuffalo/buffalo/examples/html-resource/actions" 10 "github.com/markbates/going/defaults" 11 ) 12 13 func main() { 14 port := defaults.String(os.Getenv("PORT"), "3000") 15 log.Printf("Starting html-resource on port %s\n", port) 16 log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", port), actions.App())) 17 }