MCPcopy
hub / github.com/nats-io/nats.go / showUsageAndExit

Function showUsageAndExit

examples/nats-req/main.go:33–36  ·  view source on GitHub ↗
(exitcode int)

Source from the content-addressed store, hash-verified

31}
32
33func showUsageAndExit(exitcode int) {
34 usage()
35 os.Exit(exitcode)
36}
37
38func main() {
39 var urls = flag.String("s", nats.DefaultURL, "The nats server URLs (separated by comma)")

Callers 1

mainFunction · 0.70

Calls 1

usageFunction · 0.70

Tested by

no test coverage detected