MCPcopy
hub / github.com/davyxu/cellnet / MessageToString

Function MessageToString

meta.go:291–304  ·  view source on GitHub ↗
(msg interface{})

Source from the content-addressed store, hash-verified

289}
290
291func MessageToString(msg interface{}) string {
292
293 if msg == nil {
294 return ""
295 }
296
297 if stringer, ok := msg.(interface {
298 String() string
299 }); ok {
300 return stringer.String()
301 }
302
303 return ""
304}

Callers 7

RequestMethod · 0.92
ResolveInboundEventFunction · 0.92
ResolveOutboundEventFunction · 0.92
WriteRecvLoggerFunction · 0.92
WriteSendLoggerFunction · 0.92
ResoleveInboundEventFunction · 0.92
ResolveOutboundEventFunction · 0.92

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected