Add example link in README.md - Template and Config #37

Open
opened 2018-05-04 08:16:14 +00:00 by lunny · 0 comments
Owner

Author: @Yang09701194

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=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.

Complete example see https://github.com/go-xorm/cmd/tree/master/xorm/templates

Author: @Yang09701194 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=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. **Complete example see https://github.com/go-xorm/cmd/tree/master/xorm/templates**
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/cmd#37
No description provided.