SetBoolean will set the value for name as a bool
(name string, value bool)
| 229 | |
| 230 | // SetBoolean will set the value for name as a bool |
| 231 | func (section *Section) SetBoolean(name string, value bool) { |
| 232 | current, err := section.Get(name) |
| 233 | |
| 234 | // Exists just update the value/type |
| 235 | if err == nil { |
| 236 | current.UpdateValue(value) |
| 237 | } else { |
| 238 | section.values[name] = NewBoolean(value) |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | // SetFloat will set the value for name as a float64 |
| 243 | func (section *Section) SetFloat(name string, value float64) { |
nothing calls this directly
no test coverage detected