ParseIntoString parses a strvals line and merges the result into dest. This method always returns a string as the value.
(s string, dest map[string]interface{})
| 107 | // |
| 108 | // This method always returns a string as the value. |
| 109 | func ParseIntoString(s string, dest map[string]interface{}) error { |
| 110 | scanner := bytes.NewBufferString(s) |
| 111 | t := newParser(scanner, dest, true) |
| 112 | return t.parse() |
| 113 | } |
| 114 | |
| 115 | // ParseIntoFile parses a filevals line and merges the result into dest. |
| 116 | // |