/gorm-zero

go zero gorm extension

Primary LanguageGoMIT LicenseMIT

gorm-zero

go zero gorm extension

If you use go zero, and you want to use Gorm. You can use this library.

Usage

  • add the dependent
go get github.com/SpectatorNan/gorm-zero
  • replace template/model in your project with gorm-zero/template/{goctl version}/model
  • generate
goctl model mysql -src={patterns} -dir={dir} -cache --home ./template

Usage Example