I've implemented database model generator use almost the same way. With the help of go:generate, model user don't have to care about the code generator. They can add model easily in this way:
cp user.go new_model.go
# adjust new_model fields && the go:generate comment
go go:generate && go build
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've implemented database model generator use almost the same way. With the help of go:generate, model user don't have to care about the code generator. They can add model easily in this way: