Last active
April 12, 2020 07:25
-
-
Save presmihaylov/a9224ffd160567d0fafb4aaa2e661886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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