gogen

package
v0.0.0-...-ba9cdf5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// VarStringDir describes the directory.
	VarStringDir string
	// VarStringAPI describes the API.
	VarStringAPI string
	// VarStringHome describes the go home.
	VarStringHome string
	// VarStringRemote describes the remote git repository.
	VarStringRemote string
	// VarStringBranch describes the branch.
	VarStringBranch string
	// VarStringStyle describes the style of output files.
	VarStringStyle string
)

Functions

func BuildTypes

func BuildTypes(types []spec.Type) (string, error)

BuildTypes gen types to string

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 DoGenProject

func DoGenProject(apiFile, dir, style string) error

DoGenProject gen go project files with api file

func DoGenProjectx

func DoGenProjectx(apiFile, dir, style string) error

DoGenProjectx gen go project files with api file

func GenTemplates

func GenTemplates() error

GenTemplates generates api template files.

func GoCommand

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

GoCommand gen go project files from command line

func GoxCommand

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

GoxCommand gen go project files from command line

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