gogen

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiFile   string
	OutDir    string
	CodeStyle 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 DoCmd

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

func GenProcjec

func GenProcjec(apiFile, outDir, style string) error

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