This repository has been archived on 2025-03-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
boilerplate/internal/gen/gen.go
2025-03-16 12:40:13 +07:00

19 lines
354 B
Go

package main
import (
"git.gogacoder.ru/NTO/boilerplate/internal/models"
"gorm.io/gen"
)
func main() {
g := gen.NewGenerator(gen.Config{
OutPath: "../dal",
Mode: gen.WithDefaultQuery | gen.WithQueryInterface | gen.WithoutContext,
FieldNullable: true,
WithUnitTest: true,
})
g.ApplyBasic(models.Entities...)
g.Execute()
}