(section *ini.Section, field, value string)
| 191 | } |
| 192 | |
| 193 | func stringType(section *ini.Section, field, value string) { |
| 194 | key, err := section.GetKey(field) |
| 195 | if err != nil { |
| 196 | utils.Fatal(err) |
| 197 | } |
| 198 | if len(strings.TrimSpace(value)) == 0 || value[len(value)-1] == '-' { |
| 199 | value = "" |
| 200 | } |
| 201 | key.SetValue(value) |
| 202 | |
| 203 | changeSuccess(field, value) |
| 204 | } |
| 205 | |
| 206 | func toggleType(field, value string) { |
| 207 | key := searchField(field) |
no test coverage detected