MCPcopy
hub / github.com/yannh/kubeconform / Set

Method Set

openapi2jsonschema-go/openapi2jsonschema.go:40–45  ·  view source on GitHub ↗
(k string, v any)

Source from the content-addressed store, hash-verified

38}
39
40func (m *OrderedMap) Set(k string, v any) {
41 if _, ok := m.values[k]; !ok {
42 m.keys = append(m.keys, k)
43 }
44 m.values[k] = v
45}
46
47func (m *OrderedMap) Keys() []string { return m.keys }
48

Callers 3

yamlToDataFunction · 0.95
replaceIntOrStringFunction · 0.95
mapOfFunction · 0.95

Calls

no outgoing calls

Tested by 1

mapOfFunction · 0.76