Documentation ¶ Index ¶ Variables func Execute() type ServerType Constants ¶ This section is empty. Variables ¶ View Source var ServerTypeIds = map[ServerType][]string{ Tcp: {"tcp"}, Http: {"http"}, Grpc: {"grpc"}, } Functions ¶ func Execute ¶ func Execute() Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Types ¶ type ServerType ¶ type ServerType enumflag.Flag const ( Tcp ServerType = iota Http Grpc ) Source Files ¶ View all Source files root.go Click to show internal directories. Click to hide internal directories.