atom-kit

module
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2025 License: MIT

README

env

  1. go version must more than 1.21

kit-logger

  1. zapx

  2. logx with trace id

  3. vipperx

  4. gormx

    • 配置字段具体参数, 可以修改 g.FieldOpts

    • 配置 yaml 表关系: 生成 model 后就不应该修改(否则关联关系会丢失)

    • 为指定对象自定义模版接口:

      info := g.Data[db.NamingStrategy.SchemaName("archived_ups_tag")] // 获取 yaml 表关系生成的model元数据
      g.ApplyInterface(func(upsTagInterface) {}, info.QueryStructMeta)
      

Directories

Path Synopsis
chore
utilx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL