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

Method MapBool

value/value.go:694–703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692func (m MapStringValue) ToString() string { return fmt.Sprintf("%v", m.v) }
693func (m MapStringValue) Len() int { return len(m.v) }
694func (m MapStringValue) MapBool() MapBoolValue {
695 mb := make(map[string]bool)
696 for n, sv := range m.Val() {
697 b, err := strconv.ParseBool(sv)
698 if err == nil {
699 mb[n] = b
700 }
701 }
702 return NewMapBoolValue(mb)
703}
704func (m MapStringValue) MapInt() MapIntValue {
705 mi := make(map[string]int64)
706 for n, sv := range m.Val() {

Callers 1

TestMapStringValueFunction · 0.95

Calls 2

ValMethod · 0.95
NewMapBoolValueFunction · 0.85

Tested by 1

TestMapStringValueFunction · 0.76