(path ...string)
| 194 | } |
| 195 | |
| 196 | func (c *config) Get(path ...string) (reader.Value, error) { |
| 197 | c.RLock() |
| 198 | defer c.RUnlock() |
| 199 | |
| 200 | // did sync actually work? |
| 201 | if c.vals != nil { |
| 202 | return c.vals.Get(path...) |
| 203 | } |
| 204 | |
| 205 | // no value |
| 206 | return newValue(), nil |
| 207 | } |
| 208 | |
| 209 | func (c *config) Set(val interface{}, path ...string) { |
| 210 | c.Lock() |