ParseString parses a set line and forces a string value. A set line is of the form name1=value1,name2=value2
(s string)
| 72 | // |
| 73 | // A set line is of the form name1=value1,name2=value2 |
| 74 | func ParseString(s string) (map[string]interface{}, error) { |
| 75 | vals := map[string]interface{}{} |
| 76 | scanner := bytes.NewBufferString(s) |
| 77 | t := newParser(scanner, vals, true) |
| 78 | err := t.parse() |
| 79 | return vals, err |
| 80 | } |
| 81 | |
| 82 | // ParseInto parses a strvals line and merges the result into dest. |
| 83 | // |