INNER CODE UNIT · Go
result
ozontech/file.d · cfg/config.go:539
result = op1_ + op2_
case '-':
result = op1_ - op2_
case '*':
result = op1_ * op2_
case '/':
result = op1_ / op2_
default:
return fmt.Errorf("unknown operation %q", op)
}
finalField.SetInt(int64(result))
case "base8":
value, err := strconv.ParseInt(vField.String(), 8, 64)
if err != nil {
return fmt.Errorf("could not parse field %s, err: %s", tField.Name, err.Error())
}