(valStr string, v *Int64Validation)
| 88 | } |
| 89 | |
| 90 | func Int64FromStr(valStr string, v *Int64Validation) (int64, error) { |
| 91 | if valStr == "" { |
| 92 | return ValidateInt64Missing(v) |
| 93 | } |
| 94 | casted, castOk := s.ParseInt64(valStr) |
| 95 | if !castOk { |
| 96 | return 0, ErrorInvalidPrimitiveType(valStr, PrimTypeInt) |
| 97 | } |
| 98 | return ValidateInt64Provided(casted, v) |
| 99 | } |
| 100 | |
| 101 | func Int64FromEnv(envVarName string, v *Int64Validation) (int64, error) { |
| 102 | valStr := ReadEnvVar(envVarName) |
no test coverage detected