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

Function usage

examples/nats-echo/main.go:35–38  ·  view source on GitHub ↗

NOTE: Can test with demo servers. nats-echo -s demo.nats.io <subject>

()

Source from the content-addressed store, hash-verified

33// nats-echo -s demo.nats.io <subject>
34
35func usage() {
36 log.Printf("Usage: nats-echo [-s server] [-creds file] [-t] <subject>\n")
37 flag.PrintDefaults()
38}
39
40func showUsageAndExit(exitcode int) {
41 usage()

Callers 1

showUsageAndExitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected