(provided int64, allowed int64, allowedVals ...int64)
| 232 | } |
| 233 | |
| 234 | func ErrorInvalidInt64(provided int64, allowed int64, allowedVals ...int64) error { |
| 235 | allAllowedVals := append([]int64{allowed}, allowedVals...) |
| 236 | return errors.WithStack(&errors.Error{ |
| 237 | Kind: ErrInvalidInt64, |
| 238 | Message: fmt.Sprintf("invalid value (got %s, must be %s)", s.UserStr(provided), s.UserStrsOr(allAllowedVals)), |
| 239 | }) |
| 240 | } |
| 241 | |
| 242 | func ErrorInvalidInt32(provided int32, allowed int32, allowedVals ...int32) error { |
| 243 | allAllowedVals := append([]int32{allowed}, allowedVals...) |
no test coverage detected