feat(project): 项目完结

This commit is contained in:
peakxy
2026-05-30 23:16:49 +08:00
commit 60e7777cbd
97 changed files with 15027 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package logging
import "go.uber.org/zap"
func New(env string) (*zap.Logger, error) {
if env == "prod" || env == "production" {
return zap.NewProduction()
}
return zap.NewDevelopment()
}