摘要:
1. 使用库viper 使用示例 package main import ( "fmt" "github.com/spf13/viper" ) type ServerConfig struct { ServiceName string `mapstructure:"name"` Port int ` 阅读全文
posted @ 2022-10-28 13:41
wanghhhh
阅读(245)
评论(0)
推荐(0)
摘要:
1. 项目目录结构 2. 定义main函数 package main import ( "fmt" "go.uber.org/zap" "mxshop-api/user-web/initialize" ) func main() { //初始化logger initialize.InitLogger 阅读全文
posted @ 2022-10-28 09:55
wanghhhh
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号