MCPcopy Create free account
hub / github.com/brimdata/super / stringify

Function stringify

pkg/unpack/reflector.go:128–134  ·  view source on GitHub ↗
(val any)

Source from the content-addressed store, hash-verified

126}
127
128func stringify(val any) string {
129 b, err := json.Marshal(val)
130 if err != nil {
131 return err.Error()
132 }
133 return string(b)
134}
135
136func (r Reflector) unpack(from any) (any, error) {
137 object, ok := from.(map[string]any)

Callers 2

lookupMethod · 0.85
typeErrFunction · 0.85

Calls 2

MarshalMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected