Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DealFilePath ¶
DealFilePath back save path and package name
func UpperCamel ¶ added in v1.3.0
func Write ¶
func Write(f FileInfo, data []StructInfo, oneFile bool)
Write struct information to .go file
Types ¶
type Config ¶
type Config struct { // file relative path SavePath string // json tag IsGenJsonTag bool // Generate one file or files by table IsGenInOneFile bool // Generate simple database field information like: "int unsigned not null" // value 1:not generate; 2:simple info GenDBInfoType int // json tag type. The necessary conditions:IsGenJsonTag:true. // 1.UserName 2.userName 3.user_name 4.user-name JsonTagType int // sql of creating table in database IsGenCreateSQL bool // custom type relationships will be preferred // the key is the database type, the value is the golang type CustomType map[string]string }
Config config information
Click to show internal directories.
Click to hide internal directories.