Skip to content

Instantly share code, notes, and snippets.

@presmihaylov
Last active April 12, 2020 07:25
Show Gist options
  • Save presmihaylov/a9224ffd160567d0fafb4aaa2e661886 to your computer and use it in GitHub Desktop.
Save presmihaylov/a9224ffd160567d0fafb4aaa2e661886 to your computer and use it in GitHub Desktop.
func main() {
logger, _ := zap.NewProduction()
defer logger.Sync()
slogger := logger.Sugar()
mux := http.NewServeMux()
httphandler.New(mux, slogger)
http.ListenAndServe(":8080", mux)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment