MCPcopy
hub / github.com/rs/zerolog / decodeIfBinaryToString

Function decodeIfBinaryToString

encoder_cbor.go:33–35  ·  view source on GitHub ↗

decodeIfBinaryToString - converts a binary formatted log msg to a JSON formatted String Log message.

(in []byte)

Source from the content-addressed store, hash-verified

31// decodeIfBinaryToString - converts a binary formatted log msg to a
32// JSON formatted String Log message.
33func decodeIfBinaryToString(in []byte) string {
34 return cbor.DecodeIfBinaryToString(in)
35}
36
37func decodeObjectToStr(in []byte) string {
38 return cbor.DecodeObjectToStr(in)

Callers 15

TestLogFunction · 0.70
TestInfoFunction · 0.70
TestEmptyLevelFieldNameFunction · 0.70
TestWithFunction · 0.70
TestStackedWithsFunction · 0.70
TestWithPluralsFunction · 0.70
TestWithResetFunction · 0.70
TestFieldsMapFunction · 0.70
TestFieldsMap_ArraysFunction · 0.70
TestWithErrFunction · 0.70
TestFieldsErrFunction · 0.70
TestFieldsErrsFunction · 0.70

Calls 1

DecodeIfBinaryToStringFunction · 0.92

Tested by 15

TestLogFunction · 0.56
TestInfoFunction · 0.56
TestEmptyLevelFieldNameFunction · 0.56
TestWithFunction · 0.56
TestStackedWithsFunction · 0.56
TestWithPluralsFunction · 0.56
TestWithResetFunction · 0.56
TestFieldsMapFunction · 0.56
TestFieldsMap_ArraysFunction · 0.56
TestWithErrFunction · 0.56
TestFieldsErrFunction · 0.56
TestFieldsErrsFunction · 0.56