Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

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

Open
Yang09701194 opened this issue May 4, 2018 · 0 comments
Open

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

Yang09701194 opened this issue May 4, 2018 · 0 comments

Comments

@Yang09701194
Copy link
Contributor

Yang09701194 commented May 4, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants