INNER CODE UNIT · Go
applyConfigFuncs
ozontech/file.d · cfg/config.go:263
func applyConfigFuncs(apps []funcApplier, object *simplejson.Json) {
for _, app := range apps {
applyConfigFunc(app, object)
}
}
func applyConfigFunc(app funcApplier, object *simplejson.Json) {
if a, err := object.Array(); err == nil {
for i := range a {
field := object.GetIndex(i)
if value, ok := tryApplyFunc(app, field); ok {
a[i] = value
continue
}
applyConfigFunc(app, field)
}
}