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

Function printMsg

examples/nats-echo/main.go:45–47  ·  view source on GitHub ↗
(m *nats.Msg, i int)

Source from the content-addressed store, hash-verified

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)
47}
48
49func printStatusMsg(m *nats.Msg, i int) {
50 log.Printf("[#%d] Sending status from [%s] to [%s]: %q", i, m.Subject, m.Reply, m.Data)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected