start working on struct validation for gtsmodel

This commit is contained in:
tsmethurst 2021-08-29 16:52:23 +02:00 committed by tsmethurst
commit d2276fc553
10 changed files with 407 additions and 125 deletions

View file

@ -171,3 +171,8 @@ func ValidateSiteTerms(t string) error {
return nil
}
// ValidateULID returns true if the passed string is a valid ULID.
func ValidateULID(i string) bool {
return ulidRegex.MatchString(i)
}