add

package
v0.0.0-...-7749cd0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdAdd = &cobra.Command{
	Use:   "add",
	Short: "Create a handler file by template",
	Long:  "Create a handler file using the handler template. Example: gole handler add demo",
	Run:   run,
}

CmdCache represents the new command.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Name    string
	LcName  string
	UsName  string
	Path    string
	Version string
	Method  string
}

Handler is a cache generator.

func (*Handler) Generate

func (h *Handler) Generate() error

Generate generate a Handler template.

Jump to

Keyboard shortcuts

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