MCPcopy
hub / github.com/perkeep/perkeep / getJSONMapInt64

Function getJSONMapInt64

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

Source from the content-addressed store, hash-verified

150}
151
152func getJSONMapInt64(m map[string]interface{}, key string) (int64, bool) {
153 if v, ok := m[key]; ok {
154 if n, ok := v.(float64); ok {
155 return int64(n), true
156 }
157 }
158 return 0, false
159}
160
161func getJSONMapUint32(m map[string]interface{}, key string) (uint32, bool) {
162 u, ok := getJSONMapInt64(m, key)

Callers 1

getJSONMapUint32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected