MCPcopy
hub / github.com/perkeep/perkeep / getJSONMapString

Function getJSONMapString

pkg/client/enumerate.go:143–150  ·  view source on GitHub ↗
(m map[string]interface{}, key string)

Source from the content-addressed store, hash-verified

141}
142
143func getJSONMapString(m map[string]interface{}, key string) (string, bool) {
144 if v, ok := m[key]; ok {
145 if s, ok := v.(string); ok {
146 return s, true
147 }
148 }
149 return "", false
150}
151
152func getJSONMapInt64(m map[string]interface{}, key string) (int64, bool) {
153 if v, ok := m[key]; ok {

Callers 1

EnumerateBlobsOptsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected