Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GenCmd = &cobra.Command{ Use: "gen", Short: "生成用于数据映射的结构体,使用gorm", Long: ` 示例1:不带存储路径 > lazy-struct gorm --pkg=business customer id:uint name:string - 'pkg=business' 结构体package business - 'customer' 结构体名 - 'id:uint' 字段名:字段类型 示例2: 带存储路径 > lazy-struct gorm --path=dir --pkg=business customer id:uint - 'dir' 结构体文件将要存放的地方 `, Run: run, } Dir string // 存储地址 Pkg string // 包名 Name string // 结构体名 Classify string // 用于数据映射 还是 配置映射 )
View Source
var (
ImpCmd = &cobra.Command{
Use: "imp",
Short: "从MySQL的表描述文件中,生成对应的映射结构",
Long: "",
Run: impRun,
}
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.