metaMapLower tries meta data access by lower-case version of key too
(meta map[string]string, key string)
| 100 | |
| 101 | // metaMapLower tries meta data access by lower-case version of key too |
| 102 | func 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. |
| 112 | func (po *PlotOptions) FromMetaMap(meta map[string]string) { |
no outgoing calls
no test coverage detected