cloneConfig clones a configuration object.
(i interface{})
| 215 | |
| 216 | // cloneConfig clones a configuration object. |
| 217 | func cloneConfig(i interface{}) interface{} { |
| 218 | return reflect.New(reflect.ValueOf(i).Elem().Type()).Interface() |
| 219 | } |
| 220 | |
| 221 | // replaceEnvVars replaces any string in the format ${VALUE} or $VALUE with the corresponding |
| 222 | // $VALUE environment variable |