Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nats-io/nats.go
/ showUsageAndExit
Function
showUsageAndExit
examples/nats-rply/main.go:34–37 ·
view source on GitHub ↗
(exitcode int)
Source
from the content-addressed store, hash-verified
32
}
33
34
func
showUsageAndExit(exitcode int) {
35
usage()
36
os.Exit(exitcode)
37
}
38
39
func
printMsg(m *nats.Msg, i int) {
40
log.Printf(
"[#%d] Received on [%s]: '%s'\n"
, i, m.Subject, string(m.Data))
Callers
1
main
Function · 0.70
Calls
1
usage
Function · 0.70
Tested by
no test coverage detected