MCPcopy
hub / github.com/perkeep/perkeep / getJSONMapUint32

Function getJSONMapUint32

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

Source from the content-addressed store, hash-verified

159}
160
161func getJSONMapUint32(m map[string]interface{}, key string) (uint32, bool) {
162 u, ok := getJSONMapInt64(m, key)
163 if !ok {
164 return 0, false
165 }
166 if u < 0 || u > math.MaxUint32 {
167 return 0, false
168 }
169 return uint32(u), true
170}
171
172func getJSONMapArray(m map[string]interface{}, key string) ([]interface{}, bool) {
173 if v, ok := m[key]; ok {

Callers 1

EnumerateBlobsOptsMethod · 0.85

Calls 1

getJSONMapInt64Function · 0.85

Tested by

no test coverage detected