SetString will set the value for name as a string
(name string, value string)
| 276 | |
| 277 | // SetString will set the value for name as a string |
| 278 | func (section *Section) SetString(name string, value string) { |
| 279 | current, err := section.Get(name) |
| 280 | |
| 281 | // Exists just update the value/type |
| 282 | if err == nil { |
| 283 | current.UpdateValue(value) |
| 284 | } else { |
| 285 | section.Set(name, NewString(value)) |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | // Resolve will recursively try to fetch the provided value and will respond |
| 290 | // with an error if the name does not exist or tries to be resolved through |