Incomplete implementation of createVotes

This commit is contained in:
2025-01-02 19:24:32 +01:00
parent 9efe9a3537
commit 0229f78976
9 changed files with 136 additions and 13 deletions

View File

@ -36,6 +36,10 @@ func (v *Validator) CheckField(ok bool, key, message string) {
}
}
func Blank(value string) bool {
return strings.TrimSpace(value) == ""
}
func NotBlank(value string) bool {
return strings.TrimSpace(value) != ""
}