Versions in this module Expand all Collapse all v0 v0.0.1 Jun 30, 2026 Changes in this version + type T校验器 struct + func NewT校验器(object interface{}, v配置项 *T配置项) *T校验器 + func (c *T校验器) Validate() error + type T模型校验器 struct + func NewT模型校验器(objects []interface{}, v配置项 *T配置项) *T模型校验器 + func (c *T模型校验器) Validate() error type T配置项 + func (opt *T配置项) With命名策略(namingStrategy schema.Namer) *T配置项 + func (opt *T配置项) With最大名字长度(maxNameLength int) *T配置项 v0.0.0 Mar 11, 2026 Changes in this version + type R批量替换的结果 struct + N替换文件数 int + N替换标签数 int + S替换的结果 []*R替换的结果 + func (R *R批量替换的结果) Has有变化() bool + type R替换的结果 struct + NewCode []byte + N替换标签数 int + SrcPath string + func (R *R替换的结果) Has有变化() bool + type T批量编码器 struct + func NewT批量编码器(v表结构s []*T表结构, v配置项 *T配置项) *T批量编码器 + func (c *T批量编码器) Gen替换源码() *R批量替换的结果 + func (c *T批量编码器) GetConfigs() gormmom.Configs + func (c *T批量编码器) Get预览代码() *R批量替换的结果 + func (c *T批量编码器) Validate验证标签() error + type T编码器 struct + func NewT编码器(v表结构 *T表结构, v配置项 *T配置项) *T编码器 + func (cfg *T编码器) Gen替换源码() + func (cfg *T编码器) GetConfig() *gormmom.Config + func (cfg *T编码器) Get预览代码() *R替换的结果 + type T表结构 struct + func NewT表结构(sourcePath string, structName string, gormSchema *schema.Schema) *T表结构 + func NewT表结构V2[T any](sourcePath string) *T表结构 + func NewT表结构V3(sourcePath string, object interface{}) *T表结构 + func NewT表结构s(root string, objects []interface{}) []*T表结构 + type T配置项 struct + func NewT配置项() *T配置项 + func (opt *T配置项) GetOptions() *gormmom.Options + func (opt *T配置项) With列名命名样式(pattern gormmomname.Pattern) *T配置项 + func (opt *T配置项) With列名模式标签(columnNamingSubTagName string) *T配置项 + func (opt *T配置项) With命名总标签名(systemTagName string) *T配置项 + func (opt *T配置项) With索引命名样式(pattern gormidxname.Pattern) *T配置项 + func (opt *T配置项) With跳过基本列名(skipBasicColumnName bool) *T配置项 + func (opt *T配置项) With重新命名索引(renewIndexName bool) *T配置项 + func (opt *T配置项) With默认列名样式(pattern gormmomname.Pattern) *T配置项 + func (opt *T配置项) With默认索引样式(pattern gormidxname.Pattern) *T配置项