INNER CODE UNIT · Go
idx
ozontech/file.d · cfg/config.go:425
idx := -1
found := false
for i, part := range parts {
if vField.String() == part {
found = true
idx = i
break
}
}
if !found {
return fmt.Errorf("field %s should be one of %s, got=%s", tField.Name, tag, vField.String())
}
finalField := v.FieldByName(tField.Name + "_")
if finalField != (reflect.Value{}) {
switch finalField.Kind() {
case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: