cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CFG = &Configuration{
	Module:        "",
	OutputDir:     "",
	Verbose:       false,
	IncludeTables: make([]string, 0),
	ExcludeTables: make([]string, 0),
	Global: &GlobalConfiguration{
		Author:           "bill",
		Date:             true,
		DateLayout:       "2006-01-02",
		Copyright:        true,
		CopyrightContent: "A Go source code generator written in Golang",
		Website:          true,
		WebsiteContent:   "https://github.com/billcoding/gocode-generator",
	},
	Entity: &EntityConfiguration{
		PKG:                   "entity",
		TableToEntityStrategy: UnderlineToUpper,
		ColumnToFieldStrategy: UnderlineToUpper,
		FileNameStrategy:      Default,
		JSONTag:               true,
		JSONTagKeyStrategy:    Default,
		FieldIdUpper:          true,
		Comment:               true,
		FieldComment:          true,
		NamePrefix:            "",
		NameSuffix:            "",
		Orm:                   true,
		OnlyColumnAlias:       false,
	},
	Config: &CfgConfiguration{
		PKG:  "config",
		Name: "config",
	},
}

Functions

func Execute

func Execute() error

Execute executes the root command.

func PrintVersion

func PrintVersion(goVersion bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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