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

Method MapInt

value/value.go:704–713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

702 return NewMapBoolValue(mb)
703}
704func (m MapStringValue) MapInt() MapIntValue {
705 mi := make(map[string]int64)
706 for n, sv := range m.Val() {
707 iv, err := strconv.ParseInt(sv, 10, 64)
708 if err == nil {
709 mi[n] = iv
710 }
711 }
712 return NewMapIntValue(mi)
713}
714func (m MapStringValue) MapNumber() MapNumberValue {
715 mn := make(map[string]float64)
716 for n, sv := range m.Val() {

Callers 1

TestMapStringValueFunction · 0.95

Calls 2

ValMethod · 0.95
NewMapIntValueFunction · 0.85

Tested by 1

TestMapStringValueFunction · 0.76