SetInteger will set the value for name as a int64
(name string, value int64)
| 253 | |
| 254 | // SetInteger will set the value for name as a int64 |
| 255 | func (section *Section) SetInteger(name string, value int64) { |
| 256 | current, err := section.Get(name) |
| 257 | |
| 258 | // Exists just update the value/type |
| 259 | if err == nil { |
| 260 | current.UpdateValue(value) |
| 261 | } else { |
| 262 | section.values[name] = NewInteger(value) |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | // SetNull will set the value for name as nil |
| 267 | func (section *Section) SetNull(name string) { |
nothing calls this directly
no test coverage detected