MCPcopy Create free account
hub / github.com/araddon/qlbridge / Get

Method Get

value/value.go:855–861  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

853 return MapValue{v: mv}
854}
855func (m MapTimeValue) Get(key string) (Value, bool) {
856 v, ok := m.v[key]
857 if ok {
858 return NewTimeValue(v), ok
859 }
860 return nil, ok
861}
862
863func NewMapBoolValue(v map[string]bool) MapBoolValue {
864 return MapBoolValue{v: v}

Callers 1

TestMapTimeValueFunction · 0.95

Calls 1

NewTimeValueFunction · 0.85

Tested by 1

TestMapTimeValueFunction · 0.76