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

Function showUsageAndExit

examples/nats-echo/main.go:40–43  ·  view source on GitHub ↗
(exitcode int)

Source from the content-addressed store, hash-verified

38}
39
40func showUsageAndExit(exitcode int) {
41 usage()
42 os.Exit(exitcode)
43}
44
45func printMsg(m *nats.Msg, i int) {
46 log.Printf("[#%d] Echoing from [%s] to [%s]: %q", i, m.Subject, m.Reply, m.Data)

Callers 1

mainFunction · 0.70

Calls 1

usageFunction · 0.70

Tested by

no test coverage detected