add

package
v0.0.0-...-213b989 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package add @file : add.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:13 @Description:

Package add @file : proto.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:14 @Description:

Package add @file : template.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:14 @Description:

Index

Constants

This section is empty.

Variables

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

CmdAdd 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
	JavaPackage 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