From 4dc297c2e3cf267f2cee150995636a09cb1aba8a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 14 Oct 2013 17:51:45 +0800 Subject: [PATCH] improved xorm toll readme --- xorm/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xorm/README.md b/xorm/README.md index a3ae9e36..470d09a4 100644 --- a/xorm/README.md +++ b/xorm/README.md @@ -36,7 +36,15 @@ will generated go files in `./model` directory ## 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