mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:22:25 -05:00 
			
		
		
		
	start working on struct validation for gtsmodel
This commit is contained in:
		
					parent
					
						
							
								53507ac2a3
							
						
					
				
			
			
				commit
				
					
						8aa72f995f
					
				
			
		
					 10 changed files with 407 additions and 125 deletions
				
			
		|  | @ -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) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue