protoc

package
v0.0.0-...-4faaf65 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoGoCmd = &cobra.Command{
	Use:   "gogo",
	Short: "generate protocol buffers",
	Run: func(cmd *cobra.Command, args []string) {
		if err := GoGo(dir); err != nil {
			log.Fatalln("failed to execute command", errors.WithStack(err))
		}
	},
}

protocCmd represents the protoc command

View Source
var ProtocCmd = &cobra.Command{
	Use:   "protoc",
	Short: "A brief description of your command",
	Run: func(cmd *cobra.Command, args []string) {
		if err := Grpc(dir); err != nil {
			log.Fatalln("failed to execute command", err)
		}
	},
}

protocCmd represents the protoc command

Functions

func GoGo

func GoGo(d string) error

func Grpc

func Grpc(d string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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