MCPcopy
hub / github.com/tinode/chat / bytesToInterface

Function bytesToInterface

server/pbconverter.go:533–542  ·  view source on GitHub ↗
(in []byte)

Source from the content-addressed store, hash-verified

531}
532
533func bytesToInterface(in []byte) any {
534 var out any
535 if len(in) > 0 {
536 err := json.Unmarshal(in, &out)
537 if err != nil {
538 logs.Warn.Println("pbx: failed to parse bytes", string(in), err)
539 }
540 }
541 return out
542}
543
544func timeToInt64(ts *time.Time) int64 {
545 if ts != nil {

Callers 6

pbCliDeserializeFunction · 0.85
byteMapToInterfaceMapFunction · 0.85
pbSetDescDeserializeFunction · 0.85
pbTopicDescDeserializeFunction · 0.85
pbSubSliceDeserializeFunction · 0.85

Calls 1

PrintlnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…