Documentation ¶
Index ¶
- Constants
- Variables
- func ConnectMySql()
- func DataType(columeType string) string
- func FirstCapital(str string) string
- func FirstLowerCase(str string) string
- func GenTemplate()
- func GetFileNameNoSuffix(s string) string
- func Hump(str string) string
- func InitConfig()
- type Assembly
- type Column
- type Columns
- type Config
- type Field
- type Label
- type Tables
Constants ¶
View Source
const ( USERNAME = "root" PASSWORD = "123456" NETWORK = "tcp" SERVER = "127.0.0.1" PORT = 3306 DATABASE = "records?charset=utf8&parseTime=True&loc=Local" )
View Source
const OUTPUT = "./output/"
View Source
const SUFFIX = ".java"
View Source
const TEMPLATE = "./template/"
Variables ¶
View Source
var Config1 = struct { Entity string Db struct { TableName string } }{}
Functions ¶
func ConnectMySql ¶
func ConnectMySql()
func FirstCapital ¶
func FirstLowerCase ¶
func GenTemplate ¶
func GenTemplate()
func GetFileNameNoSuffix ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Assembly ¶
type Assembly struct { Date string Author string EntityName string LowercaseEntityName string TableName string PackageName string Fields []Field Columns []Columns }
Final assembly block
Click to show internal directories.
Click to hide internal directories.