Versions in this module Expand all Collapse all v1 v1.0.0 May 22, 2021 Changes in this version + type GenElement struct + ColumnName string + Name string + Notes string + Tags map[string][]string + Type string + func (e *GenElement) AddTag(k string, v string) + func (e *GenElement) Generate() string + func (e *GenElement) GenerateColor() string + func (e *GenElement) SetName(name string) + func (e *GenElement) SetNotes(notes string) + func (e *GenElement) SetType(tp string) + type GenPackage struct + FuncStrList []string + Imports map[string]string + Name string + Structs []GenStruct + func (p *GenPackage) AddFuncStr(src string) + func (p *GenPackage) AddImport(imp string) + func (p *GenPackage) AddStruct(st GenStruct) + func (p *GenPackage) Generate() string + func (p *GenPackage) SetPackage(pname string) + type GenStruct struct + Em []GenElement + Name string + Notes string + SQLBuildStr string + TableName string + func (s *GenStruct) AddElement(e ...GenElement) + func (s *GenStruct) GenerateColumnName() []string + func (s *GenStruct) GenerateTableName() []string + func (s *GenStruct) Generates() []string + func (s *GenStruct) GeneratesColor() []string + func (s *GenStruct) SetCreatTableStr(sql string) + func (s *GenStruct) SetNotes(notes string) + func (s *GenStruct) SetStructName(name string) + func (s *GenStruct) SetTableName(name string)