Documentation ¶ Index ¶ func Execute() type Field type GenConfig type Model Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Execute ¶ func Execute() Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Types ¶ type Field ¶ type Field struct { TitleName string CamelName string SnakeName string SQLName string SQLType string Type string Tag string ZeroValue string Nullable bool } type GenConfig ¶ added in v0.6.0 type GenConfig struct { DriveName string Dsn string Prefix string AppendPrefix bool SelectAllTable bool Output string SoftDeleteColumn string Tag string TimeString bool } type Model ¶ type Model struct { Pkg string TitleName string CamelName string SnakeName string SQLName string Placeholder string SoftDeleteColumn string Fields []*Field } Source Files ¶ View all Source files gen.go root.go version.go Directories ¶ Show internal Expand all Path Synopsis gomodel Click to show internal directories. Click to hide internal directories.