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

Method Get

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

Source from the content-addressed store, hash-verified

771 return MapValue{v: mv}
772}
773func (m MapIntValue) Get(key string) (Value, bool) {
774 v, ok := m.v[key]
775 if ok {
776 return NewIntValue(v), ok
777 }
778 return nil, ok
779}
780func (m MapIntValue) SliceValue() []Value {
781 vs := make([]Value, 0, len(m.v))
782 for k := range m.v {

Callers 1

TestMapIntValueFunction · 0.95

Calls 1

NewIntValueFunction · 0.85

Tested by 1

TestMapIntValueFunction · 0.76