cmd

package
v0.0.0-...-57c932c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func GcgRunE

func GcgRunE(_cmd *cobra.Command, _args []string) error

Types

type DataToRenderTmpls

type DataToRenderTmpls struct {
	ModelInfo
	ModelName           string
	StructFields        []Field
	AdditionalImportPkg []ImportPkg
}

RenderTmplData represents the template data structure.

type Field

type Field struct {
	Name      string
	Type      string
	NameSnake string
}

type ImportPkg

type ImportPkg struct {
	Alias string
	Path  string
}

ImportPkg represents an imported package with an optional alias.

type ModelInfo

type ModelInfo struct {
	SourceFileName string
	TmplFile       string

	ModelName string

	SkipWhere bool
	WhereFunc string

	SkipPreload bool
	PreloadFunc string

	SkipWhereOption   bool
	WhereOptionStruct string
	// contains filtered or unexported fields
}

type StructFiled

type StructFiled struct {
	Fields []Field
}

StructFiled represents a structure with its fields.

Jump to

Keyboard shortcuts

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