We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "fmt" "github.com/asaskevich/govalidator" ) type T struct { Title string `json:"title" valid:"required"` Content string `json:"content" ` Text string `json:"text" valid:"required"` } func main() { _f := T{ Title: "", Content: "", Text: "", } _, err := govalidator.ValidateStruct(_f) fmt.Println(err) // IS nil }
How to verify that the string is empty? Use length to judge?
The text was updated successfully, but these errors were encountered:
I'm having the same problem. What was the solution for this? @codexuexi
Sorry, something went wrong.
Might be related to: #359
No branches or pull requests
How to verify that the string is empty? Use length to judge?
The text was updated successfully, but these errors were encountered: