// nonEmpty checks if the given string contains at least one non-whitespace character and returns an error if not.
nonEmpty checks if the given string contains at least one non-whitespace character and returns an error if not.
// nonEmpty checks if the given string contains at least one non - whitespace character and returns an error if not .
func nonEmpty(v string) error {
	if utf8.RuneCountInString(strings.TrimSpace(v)) == 0 {
		return errors.New("cannot be empty")
	}
	return nil
}
func nonEmpty ( v string ) error { if utf8 . RuneCountInString ( strings . TrimSpace ( v ) ) == 0 { return errors . New ( " " ) } return nil }
nonEmpty checks if the given string contains at least one non-whitespace character and returns an error if not.
nonEmpty checks if the given string contains at least one non - whitespace character and returns an error if not .