code: func SlugValidator(fieldName string) Func {
  	return func(input string) error {
  		if govalidator.StringMatches(input, slugPattern) {
  			return nil
  		}
  
  		return NewValidationError(fmt.Sprintf(slugErrorPattern, fieldName))
  	}
  }
docs: // SlugValidator returns a validation function