templates.golang.common.go.template Maven / Gradle / Ivy
package main
import "go.uber.org/zap"
var logger = getLogger()
func getLogger() *zap.Logger {
logger, err := zap.NewProduction()
if err != nil {
panic(err)
}
return logger
}
package main
import "go.uber.org/zap"
var logger = getLogger()
func getLogger() *zap.Logger {
logger, err := zap.NewProduction()
if err != nil {
panic(err)
}
return logger
}