INNER CODE UNIT · Go

usage

resgateio/resgate · main.go:287

func usage() {
	fmt.Printf("%s\n", usageStr)
	os.Exit(0)
}

// version will print out the current resgate and protocol version.
func version() {
	fmt.Printf("resgate  v%s\nprotocol v%s\n", server.Version, server.ProtocolVersion)
	os.Exit(0)
}

func printAndDie(msg string, showUsage bool) {
	fmt.Fprintln(os.Stderr, msg)
	if showUsage {
		fmt.Fprintln(os.Stderr, usageStr)
	}
	os.Exit(1)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…