README ¶ env go version must more than 1.21 kit-logger zapx logx with trace id vipperx gormx 配置字段具体参数, 可以修改 g.FieldOpts 配置 yaml 表关系: 生成 model 后就不应该修改(否则关联关系会丢失) 为指定对象自定义模版接口: info := g.Data[db.NamingStrategy.SchemaName("archived_ups_tag")] // 获取 yaml 表关系生成的model元数据 g.ApplyInterface(func(upsTagInterface) {}, info.QueryStructMeta) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Init(path ...string) (v *viper.Viper, l *zap.Logger, d *gorm.DB) func InitV0(conf any, path ...string) func InitWithConf(conf any, path ...string) (v *viper.Viper, l *zap.Logger, d *gorm.DB) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(path ...string) (v *viper.Viper, l *zap.Logger, d *gorm.DB) func InitV0 ¶ func InitV0(conf any, path ...string) func InitWithConf ¶ added in v0.2.4 func InitWithConf(conf any, path ...string) (v *viper.Viper, l *zap.Logger, d *gorm.DB) Types ¶ This section is empty. Source Files ¶ View all Source files kg.go Directories ¶ Show internal Expand all Path Synopsis api aconfig core middleware middleware/limiter middleware/tracing request response chore wpp/couponx wpp/orderx gormx gconfig initialize initialize/internal migration pb source/g gz ipx kg logx rich util oneid redis initialize rconfig tracing httpx httpx/handler httpx/internal httpx/response httpx/rest rpc/clientinterceptor rpc/serverinterceptor stores/mon stores/redis stores/sqlx trace trace/tracetest util copier currency email proto viperx initialize vconfig zapx config internal util Click to show internal directories. Click to hide internal directories.