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
func (dt *Datatype) ValidateValue(value interface{}) bool { switch dt.ValueCheck { case "URL": return validateURL(value) case "in{1,2,3,4,5}": // TEMP return validateInRange(value, 1, 5) case "mail_ping": return validateEmail(value) case "phone": return validatePhone(value) case "file_exists": return validateFileExists(value) case "date": return validateDate(value) default: return false } }
The text was updated successfully, but these errors were encountered:
We should struct because we can combine metadata and methods
Sorry, something went wrong.
tferracina
No branches or pull requests
func (dt *Datatype) ValidateValue(value interface{}) bool { switch dt.ValueCheck { case "URL": return validateURL(value) case "in{1,2,3,4,5}": // TEMP return validateInRange(value, 1, 5) case "mail_ping": return validateEmail(value) case "phone": return validatePhone(value) case "file_exists": return validateFileExists(value) case "date": return validateDate(value) default: return false } }
The text was updated successfully, but these errors were encountered: