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

Function normalizeSlice

pkg/importinpututil/import_input.go:76–82  ·  view source on GitHub ↗
(rv reflect.Value)

Source from the content-addressed store, hash-verified

74}
75
76func normalizeSlice(rv reflect.Value) []any {
77 normalized := make([]any, rv.Len())
78 for i := range rv.Len() {
79 normalized[i] = rv.Index(i).Interface()
80 }
81 return normalized
82}
83
84func normalizeMap(rv reflect.Value) map[string]any {
85 keys := make([]string, 0, rv.Len())

Callers 1

formatReflectiveValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected