├── .github └── workflows │ └── release.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── README.zh.md ├── gen.go ├── gen_batch.go ├── gen_index.go ├── gen_index_test.go ├── gen_options.go ├── gen_options_test.go ├── gen_test.go ├── go.mod ├── go.sum ├── gorm_struct.go ├── gorm_struct_test.go ├── gormidxname ├── pattern.go ├── pattern_lowercase63.go ├── pattern_test.go └── pattern_uppercase63.go ├── gormmomname ├── pattern.go ├── pattern_lowercase30.go ├── pattern_lowercase63.go ├── pattern_test.go ├── pattern_uppercase30.go └── pattern_uppercase63.go ├── gormmomzhcn └── README.md ├── internal ├── docs │ ├── README_OLD_DOC.en.md │ └── README_OLD_DOC.zh.md ├── examples │ ├── example1 │ │ ├── example1_test.go │ │ └── internal │ │ │ └── models │ │ │ ├── gormcnm.go │ │ │ ├── gormcnm_test.go │ │ │ └── user.go │ ├── example2 │ │ ├── example2_test.go │ │ └── internal │ │ │ └── models │ │ │ ├── gormcnm.go │ │ │ ├── gormcnm_test.go │ │ │ └── user.go │ ├── example3 │ │ ├── example3_test.go │ │ └── internal │ │ │ └── models │ │ │ ├── gormcnm.go │ │ │ ├── gormcnm_test.go │ │ │ └── user.go │ └── tests │ │ ├── example11 │ │ ├── example11_test.go │ │ └── internal │ │ │ └── models │ │ │ ├── example1.go │ │ │ ├── gormcnm.go │ │ │ └── gormcnm_test.go │ │ ├── example12 │ │ ├── example12_test.go │ │ └── internal │ │ │ └── models │ │ │ ├── example2.go │ │ │ ├── gormcnm.go │ │ │ └── gormcnm_test.go │ │ └── example13 │ │ ├── example13_test.go │ │ └── internal │ │ └── models │ │ ├── example1.go │ │ ├── example2.go │ │ ├── example3.go │ │ ├── examples.go │ │ ├── gormcnm.go │ │ └── gormcnm_test.go ├── simpleindexname │ ├── simple_index_name.go │ └── simple_index_name_test.go ├── simplename │ ├── simple_column_name.go │ └── simple_column_name_test.go ├── unicodehex │ ├── unicodehex.go │ └── unicodehex_test.go └── utils │ ├── utils.go │ └── utils_test.go ├── validate_gorm_tags.go └── validate_gorm_tags_test.go /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/README.md -------------------------------------------------------------------------------- /README.zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/README.zh.md -------------------------------------------------------------------------------- /gen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen.go -------------------------------------------------------------------------------- /gen_batch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen_batch.go -------------------------------------------------------------------------------- /gen_index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen_index.go -------------------------------------------------------------------------------- /gen_index_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen_index_test.go -------------------------------------------------------------------------------- /gen_options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen_options.go -------------------------------------------------------------------------------- /gen_options_test.go: -------------------------------------------------------------------------------- 1 | package gormmom 2 | -------------------------------------------------------------------------------- /gen_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gen_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/go.sum -------------------------------------------------------------------------------- /gorm_struct.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gorm_struct.go -------------------------------------------------------------------------------- /gorm_struct_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gorm_struct_test.go -------------------------------------------------------------------------------- /gormidxname/pattern.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormidxname/pattern.go -------------------------------------------------------------------------------- /gormidxname/pattern_lowercase63.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormidxname/pattern_lowercase63.go -------------------------------------------------------------------------------- /gormidxname/pattern_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormidxname/pattern_test.go -------------------------------------------------------------------------------- /gormidxname/pattern_uppercase63.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormidxname/pattern_uppercase63.go -------------------------------------------------------------------------------- /gormmomname/pattern.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern.go -------------------------------------------------------------------------------- /gormmomname/pattern_lowercase30.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern_lowercase30.go -------------------------------------------------------------------------------- /gormmomname/pattern_lowercase63.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern_lowercase63.go -------------------------------------------------------------------------------- /gormmomname/pattern_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern_test.go -------------------------------------------------------------------------------- /gormmomname/pattern_uppercase30.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern_uppercase30.go -------------------------------------------------------------------------------- /gormmomname/pattern_uppercase63.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomname/pattern_uppercase63.go -------------------------------------------------------------------------------- /gormmomzhcn/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/gormmomzhcn/README.md -------------------------------------------------------------------------------- /internal/docs/README_OLD_DOC.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/docs/README_OLD_DOC.en.md -------------------------------------------------------------------------------- /internal/docs/README_OLD_DOC.zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/docs/README_OLD_DOC.zh.md -------------------------------------------------------------------------------- /internal/examples/example1/example1_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example1/example1_test.go -------------------------------------------------------------------------------- /internal/examples/example1/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example1/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/example1/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example1/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/examples/example1/internal/models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example1/internal/models/user.go -------------------------------------------------------------------------------- /internal/examples/example2/example2_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example2/example2_test.go -------------------------------------------------------------------------------- /internal/examples/example2/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example2/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/example2/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example2/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/examples/example2/internal/models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example2/internal/models/user.go -------------------------------------------------------------------------------- /internal/examples/example3/example3_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example3/example3_test.go -------------------------------------------------------------------------------- /internal/examples/example3/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example3/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/example3/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example3/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/examples/example3/internal/models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/example3/internal/models/user.go -------------------------------------------------------------------------------- /internal/examples/tests/example11/example11_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example11/example11_test.go -------------------------------------------------------------------------------- /internal/examples/tests/example11/internal/models/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example11/internal/models/example1.go -------------------------------------------------------------------------------- /internal/examples/tests/example11/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example11/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/tests/example11/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example11/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/examples/tests/example12/example12_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example12/example12_test.go -------------------------------------------------------------------------------- /internal/examples/tests/example12/internal/models/example2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example12/internal/models/example2.go -------------------------------------------------------------------------------- /internal/examples/tests/example12/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example12/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/tests/example12/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example12/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/example13_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/example13_test.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/example1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/internal/models/example1.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/example2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/internal/models/example2.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/example3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/internal/models/example3.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/examples.go: -------------------------------------------------------------------------------- 1 | package models 2 | -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/gormcnm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/internal/models/gormcnm.go -------------------------------------------------------------------------------- /internal/examples/tests/example13/internal/models/gormcnm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/examples/tests/example13/internal/models/gormcnm_test.go -------------------------------------------------------------------------------- /internal/simpleindexname/simple_index_name.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/simpleindexname/simple_index_name.go -------------------------------------------------------------------------------- /internal/simpleindexname/simple_index_name_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/simpleindexname/simple_index_name_test.go -------------------------------------------------------------------------------- /internal/simplename/simple_column_name.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/simplename/simple_column_name.go -------------------------------------------------------------------------------- /internal/simplename/simple_column_name_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/simplename/simple_column_name_test.go -------------------------------------------------------------------------------- /internal/unicodehex/unicodehex.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/unicodehex/unicodehex.go -------------------------------------------------------------------------------- /internal/unicodehex/unicodehex_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/unicodehex/unicodehex_test.go -------------------------------------------------------------------------------- /internal/utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/utils/utils.go -------------------------------------------------------------------------------- /internal/utils/utils_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/internal/utils/utils_test.go -------------------------------------------------------------------------------- /validate_gorm_tags.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/validate_gorm_tags.go -------------------------------------------------------------------------------- /validate_gorm_tags_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yyle88/gormmom/HEAD/validate_gorm_tags_test.go --------------------------------------------------------------------------------