(key interface{})
| 306 | } |
| 307 | |
| 308 | func ErrorNonStringKeyFound(key interface{}) error { |
| 309 | return errors.WithStack(&errors.Error{ |
| 310 | Kind: ErrNonStringKeyFound, |
| 311 | Message: fmt.Sprintf("non string key found: %s", s.ObjFlat(key)), |
| 312 | }) |
| 313 | } |
| 314 | |
| 315 | func ErrorInvalidPrimitiveType(provided interface{}, allowedType PrimitiveType, allowedTypes ...PrimitiveType) error { |
| 316 | allAllowedTypes := append([]PrimitiveType{allowedType}, allowedTypes...) |
no test coverage detected