MCPcopy Create free account
hub / github.com/AdRoll/baker / cloneConfig

Function cloneConfig

config.go:217–219  ·  view source on GitHub ↗

cloneConfig clones a configuration object.

(i interface{})

Source from the content-addressed store, hash-verified

215
216// cloneConfig clones a configuration object.
217func 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

Callers 1

NewConfigFromTomlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected