new

package
v0.0.0-...-49b14b5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VarStringHome describes the goctl home.
	VarStringHome string
	// VarStringRemote describes the remote git repository.
	VarStringRemote string
	// VarStringBranch describes the git branch.
	VarStringBranch string
	// VarStringStyle describes the style of output files.
	VarStringStyle string
	// VarBoolErrorTranslate describes whether to translate error
	VarBoolErrorTranslate bool
	// VarBoolUseCasbin describe whether to use Casbin
	VarBoolUseCasbin bool
	// VarBoolUseI18n describe whether to use i18n
	VarBoolUseI18n bool
	// VarModuleName describe the module name
	VarModuleName string
	// VarIntServicePort describe the service port exposed
	VarIntServicePort int
	// VarBoolEnt describes whether to use ent in api
	VarBoolEnt bool
	// VarBoolCore describes whether to generate core rpc code
	VarBoolCore bool
)
View Source
var GitIgnoreTmpl string

Functions

func Category

func Category() string

Category returns the category of the api files.

func Clean

func Clean() error

Clean cleans the generated deployment files.

func CreateServiceCommand

func CreateServiceCommand(_ *cobra.Command, args []string) error

CreateServiceCommand fast create service

func GenTemplates

func GenTemplates() error

GenTemplates generates api template files.

func RevertTemplate

func RevertTemplate(name string) error

RevertTemplate reverts the given template file to the default value.

func Update

func Update() error

Update updates the template files to the templates built in current goctl.

Types

This section is empty.

Jump to

Keyboard shortcuts

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