Created
August 17, 2019 13:30
-
-
Save dumindu/3c7a1764d908cd22f960a2a71f1f5e5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package validator | |
import ( | |
"gopkg.in/go-playground/validator.v9" | |
) | |
func New() *validator.Validate { | |
validate := validator.New() | |
validate.SetTagName("form") | |
return validate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment