gogen

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTypes

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

func Clean

func Clean() error

func DoGenProject

func DoGenProject(apiFile, dir, style string) error

func GenTemplates

func GenTemplates(_ *cli.Context) error

func GetCategory

func GetCategory() string

func GoCommand

func GoCommand(c *cli.Context) error

func RevertTemplate

func RevertTemplate(name string) error

func Update

func Update(category string) error

Types

type Handler

type Handler struct {
	ImportPackages string
	HandlerName    string
	RequestType    string
	LogicType      string
	Call           string
	HasResp        bool
	HasRequest     bool
}

Jump to

Keyboard shortcuts

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