Incomplete implementation of createVotes
This commit is contained in:
@ -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) != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user