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

Function showUsageAndExit

examples/nats-qsub/main.go:34–37  ·  view source on GitHub ↗
(exitcode int)

Source from the content-addressed store, hash-verified

32}
33
34func showUsageAndExit(exitcode int) {
35 usage()
36 os.Exit(exitcode)
37}
38
39func printMsg(m *nats.Msg, i int) {
40 log.Printf("[#%d] Received on [%s] Queue[%s] Pid[%d]: '%s'", i, m.Subject, m.Sub.Queue, os.Getpid(), string(m.Data))

Callers 1

mainFunction · 0.70

Calls 1

usageFunction · 0.70

Tested by

no test coverage detected