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

Method Get

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

Source from the content-addressed store, hash-verified

729 return MapValue{v: mv}
730}
731func (m MapStringValue) Get(key string) (Value, bool) {
732 v, ok := m.v[key]
733 if ok {
734 return NewStringValue(v), ok
735 }
736 return nil, ok
737}
738func (m MapStringValue) SliceValue() []Value {
739 vs := make([]Value, 0, len(m.v))
740 for k := range m.v {

Callers 1

TestMapStringValueFunction · 0.95

Calls 1

NewStringValueFunction · 0.85

Tested by 1

TestMapStringValueFunction · 0.76