This commit is contained in:
Vladislav Kunetskiy
2026-11-05 21:19:33 +03:00
parent 470d9d6f1e
commit a000095743
447 changed files with 82079 additions and 57 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
}