add

package
v0.0.0-...-eb9df38 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCmd = &cobra.Command{
	Use:     "add",
	Short:   "Add a proto API template",
	Long:    "Add a proto API template",
	Example: "strike proto add helloworld/v1/foo.proto",
	Run:     run,
}

AddCmd represents the add command.

Functions

This section is empty.

Types

type Proto

type Proto struct {
	Name      string
	Path      string
	Service   string
	Package   string
	GoPackage string
}

Proto is a proto generator.

func (*Proto) Generate

func (p *Proto) Generate() error

Generate generate a proto template.

Jump to

Keyboard shortcuts

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