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

Function getReader

internal/cbor/decode_stream.go:619–621  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

617}
618
619func getReader(str string) *bufio.Reader {
620 return bufio.NewReader(strings.NewReader(str))
621}
622
623// DecodeIfBinaryToString converts a binary formatted log msg to a
624// JSON formatted String Log message - suitable for printing to Console/Syslog.

Callers 15

DecodeObjectToStrFunction · 0.85
TestDecodeIntegerFunction · 0.85
TestDecodeStringFunction · 0.85
TestDecodeArrayFunction · 0.85
TestDecodeMapFunction · 0.85
TestDecodeBoolFunction · 0.85
TestDecodeFloatFunction · 0.85
TestDecodeTimestampFunction · 0.85
TestDecodeNetworkAddrFunction · 0.85
TestDecodeMACAddrFunction · 0.85
TestDecodeIPPrefixFunction · 0.85
TestDecodeCbor2JsonFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestDecodeIntegerFunction · 0.68
TestDecodeStringFunction · 0.68
TestDecodeArrayFunction · 0.68
TestDecodeMapFunction · 0.68
TestDecodeBoolFunction · 0.68
TestDecodeFloatFunction · 0.68
TestDecodeTimestampFunction · 0.68
TestDecodeNetworkAddrFunction · 0.68
TestDecodeMACAddrFunction · 0.68
TestDecodeIPPrefixFunction · 0.68
TestDecodeCbor2JsonFunction · 0.68