Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdProto = &cobra.Command{ Use: "proto [file]", Short: "quick and easy compilation of proto files", Long: ` Usage: gos proto [file] [file] the proto file you wanna to compile, gos supports two additional wildcards: "all" means compiling all proto files under the current folder (excluding subfolders); "all/all" means compiling all proto files in the current directory and all subdirectories - Compile a single file gos proto helloworld.proto - Compile all proto files under the current folder (excluding subfolders) gos proto all - Compile all proto files in the current directory and all subdirectories gos proto all/all `, Args: cobra.ExactArgs(1), }
CmdProto is the command line for cross compilation
View Source
var GoPathSrc = filepath.Join(os.Getenv("GOPATH"), "src")
GoPathSrc is the address of $GOPATH/src
Functions ¶
func WalkCurrent ¶
func WalkCurrent() error
WalkCurrent is used to traverse all proto files in the current folder and execute the generate command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.