NotEmpty adds an error if the string is empty.
()
| 15 | |
| 16 | // NotEmpty adds an error if the string is empty. |
| 17 | func (e *StringError) NotEmpty() *StringError { |
| 18 | e.Func(NotEmpty) |
| 19 | return e |
| 20 | } |
| 21 | |
| 22 | // Fullname adds an error if the string is not a full name. |
| 23 | func (e *StringError) Fullname() *StringError { |