MCPcopy Create free account
hub / github.com/github/gh-aw / marshalValue

Function marshalValue

pkg/importinpututil/import_input.go:68–74  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

66}
67
68func marshalValue(value any) (string, bool) {
69 b, err := json.Marshal(value)
70 if err != nil {
71 return "", false
72 }
73 return string(b), true
74}
75
76func normalizeSlice(rv reflect.Value) []any {
77 normalized := make([]any, rv.Len())

Callers 2

FormatResolvedValueFunction · 0.85
formatReflectiveValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected