INNER CODE UNIT · Go

init

DVKunion/SeaMoon · cmd/main.go:79

func init() {
	clientWebCommand.Flags().BoolVarP(&debug, "debug", "d", false, "proxy detail log")

	serverCommand.Flags().StringVarP(&addr, "addr", "a", "0.0.0.0", "server listen addr")
	serverCommand.Flags().StringVarP(&port, "port", "p", "9000", "server listen port")
	serverCommand.Flags().StringVarP(&proto, "proto", "t", "websocket", "server listen proto: (websocket/grpc)")

	rootCommand.AddCommand(versionCommand)
	rootCommand.AddCommand(clientCommand)
	rootCommand.AddCommand(serverCommand)
	rootCommand.AddCommand(generateCommand)

	clientCommand.AddCommand(clientWebCommand)
}

func main() {
	if err := rootCommand.Execute(); err != nil {
		os.Exit(1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…