improved xorm toll readme

This commit is contained in:
Lunny Xiao 2013-10-14 17:51:45 +08:00
parent 1031aa7b45
commit 4dc297c2e3
1 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,15 @@ will generated go files in `./model` directory
## Template and Config ## Template and Config
Now, xorm tool supports go and c++ two languages and have go, goxorm, c++ three of default templates. In 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.
## LICENSE ## LICENSE