MCPcopy Create free account
hub / github.com/cogentcore/core / metaMapLower

Function metaMapLower

plot/plotcore/options.go:102–109  ·  view source on GitHub ↗

metaMapLower tries meta data access by lower-case version of key too

(meta map[string]string, key string)

Source from the content-addressed store, hash-verified

100
101// metaMapLower tries meta data access by lower-case version of key too
102func metaMapLower(meta map[string]string, key string) (string, bool) {
103 vl, has := meta[key]
104 if has {
105 return vl, has
106 }
107 vl, has = meta[strings.ToLower(key)]
108 return vl, has
109}
110
111// FromMetaMap sets plot options from meta data map.
112func (po *PlotOptions) FromMetaMap(meta map[string]string) {

Callers 2

FromMetaMapMethod · 0.85
fromMetaMapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected