Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
40
func
showUsageAndExit(exitcode int) {
41
usage()
42
os.Exit(exitcode)
43
}
44
45
func
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
main
Function · 0.70
Calls
1
usage
Function · 0.70
Tested by
no test coverage detected