Length adds an error if the string length is not in the given range.
(min, max int)
| 27 | |
| 28 | // Length adds an error if the string length is not in the given range. |
| 29 | func (e *StringError) Length(min, max int) *StringError { |
| 30 | e.Func(StringLength(min, max)) |
| 31 | return e |
| 32 | } |
| 33 | |
| 34 | // NotEmpty accepts any string and returns a message if the value is empty. |
| 35 | func NotEmpty(s string) string { |
nothing calls this directly
no test coverage detected