MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / ReadError

Function ReadError

IceFireDB-PubSub/test/proto/proto.go:116–127  ·  view source on GitHub ↗
(b string)

Source from the content-addressed store, hash-verified

114}
115
116func ReadError(b string) (string, error) {
117 if len(b) < 1 {
118 return "", ErrUnexpected
119 }
120
121 switch b[0] {
122 default:
123 return "", ErrUnexpected
124 case '-':
125 return readInline(b)
126 }
127}
128
129func ReadStrings(b string) ([]string, error) {
130 elems, err := ReadArray(b)

Callers

nothing calls this directly

Calls 1

readInlineFunction · 0.70

Tested by

no test coverage detected