This commit is contained in:
Vladislav Kunetskiy
2026-10-01 12:59:06 +03:00
parent 65003b6119
commit 51b236a69f
86 changed files with 33332 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
package domain
import (
"fmt"
"strings"
)
func validateNotBlank(field, value string) error {
if strings.TrimSpace(value) == "" {
return fmt.Errorf("%s consists of whitespace only: %w", field, ErrValidation)
}
return nil
}