()
| 186 | } |
| 187 | |
| 188 | func (this *config) read() error { |
| 189 | data, err := ioutil.ReadFile(config_file()) |
| 190 | if err != nil { |
| 191 | return err |
| 192 | } |
| 193 | |
| 194 | err = json.Unmarshal(data, this) |
| 195 | if err != nil { |
| 196 | return err |
| 197 | } |
| 198 | |
| 199 | return nil |
| 200 | } |
| 201 | |
| 202 | func quoted(v interface{}) string { |
| 203 | switch v.(type) { |
no test coverage detected