cmd

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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
	// GoType eg: string,null.String
	GoType string
	// GoRawType eg: string, int
	GoRawType 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL