ParseLiteral parses a set line interpreting the value as a literal string. A set line is of the form name1=value1
(s string)
| 27 | // |
| 28 | // A set line is of the form name1=value1 |
| 29 | func ParseLiteral(s string) (map[string]any, error) { |
| 30 | vals := map[string]any{} |
| 31 | scanner := bytes.NewBufferString(s) |
| 32 | t := newLiteralParser(scanner, vals) |
| 33 | err := t.parse() |
| 34 | return vals, err |
| 35 | } |
| 36 | |
| 37 | // ParseLiteralInto parses a strvals line and merges the result into dest. |
| 38 | // The value is interpreted as a literal string. |
searching dependent graphs…