MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / SerializeOrRaw

Function SerializeOrRaw

util/util.go:105–115  ·  view source on GitHub ↗

SerializeOrRaw serializes the interface if its not an array of bytes already

(serializer serialize.Serializer, v interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

SendPushToUsersFunction · 0.92
serializeReturnFunction · 0.92
serializeMethod · 0.92
sendPushMethod · 0.92
SendRequestMethod · 0.92
writeMethod · 0.92
TestSerializeOrRawFunction · 0.85
GetErrorPayloadFunction · 0.85

Calls 1

MarshalMethod · 0.65

Tested by 1

TestSerializeOrRawFunction · 0.68