ParseString parses a set line and forces a string value. A set line is of the form name1=value1,name2=value2
(s string)
| 64 | // |
| 65 | // A set line is of the form name1=value1,name2=value2 |
| 66 | func ParseString(s string) (map[string]any, error) { |
| 67 | vals := map[string]any{} |
| 68 | scanner := bytes.NewBufferString(s) |
| 69 | t := newParser(scanner, vals, true) |
| 70 | err := t.parse() |
| 71 | return vals, err |
| 72 | } |
| 73 | |
| 74 | // ParseInto parses a strvals line and merges the result into dest. |
| 75 | // |
searching dependent graphs…