You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
because when I see this paragraph at the first time, I can't know what's the name of config file, what's the name of template file, etc.
Template and Config
Now, xorm tool supports go and c++ two languages and have go, goxorm, c++ three of default templates. In template directory, we can put a config file to control how to generating.
lang=go
genJson=1
lang must be go or c++ now. genJson can be 1 or 0, if 1 then the struct will have json tag.
In README.md - Template and Config,
I suggest add example direction to https://github.com/go-xorm/cmd/tree/master/xorm/templates
such as the bold word in the end below,
because when I see this paragraph at the first time, I can't know what's the name of config file, what's the name of template file, etc.
Template and Config
Now, xorm tool supports go and c++ two languages and have go, goxorm, c++ three of default templates. In template directory, we can put a config file to control how to generating.
lang must be go or c++ now. genJson can be 1 or 0, if 1 then the struct will have json tag.
Complete example see https://github.com/go-xorm/cmd/tree/master/xorm/templates
The text was updated successfully, but these errors were encountered: