(val interface{})
| 321 | } |
| 322 | |
| 323 | func ErrorDuplicatedValue(val interface{}) error { |
| 324 | return errors.WithStack(&errors.Error{ |
| 325 | Kind: ErrDuplicatedValue, |
| 326 | Message: fmt.Sprintf("%s is duplicated", s.UserStr(val)), |
| 327 | }) |
| 328 | } |
| 329 | |
| 330 | func ErrorTooFewElements(minLength int) error { |
| 331 | return errors.WithStack(&errors.Error{ |
no test coverage detected