SetFloat will set the value for name as a float64
(name string, value float64)
| 241 | |
| 242 | // SetFloat will set the value for name as a float64 |
| 243 | func (section *Section) SetFloat(name string, value float64) { |
| 244 | current, err := section.Get(name) |
| 245 | |
| 246 | // Exists just update the value/type |
| 247 | if err == nil { |
| 248 | current.UpdateValue(value) |
| 249 | } else { |
| 250 | section.values[name] = NewFloat(value) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // SetInteger will set the value for name as a int64 |
| 255 | func (section *Section) SetInteger(name string, value int64) { |
nothing calls this directly
no test coverage detected