Skip to content

Instantly share code, notes, and snippets.

@ivorscott
Created June 5, 2020 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivorscott/cb3f40aa103bb108a1efc1f7c4d65494 to your computer and use it in GitHub Desktop.
Save ivorscott/cb3f40aa103bb108a1efc1f7c4d65494 to your computer and use it in GitHub Desktop.
// api/cmd/api/main.go
go func() {
log.Printf("main: Debug service listening on %s", cfg.Web.Debug)
err := http.ListenAndServe(cfg.Web.Debug, nil)
if err != nil {
log.Printf("main: Debug service failed listening on %s", cfg.Web.Debug)
}
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment