mirror of
				https://github.com/photoprism/photoprism.git
				synced 2025-10-31 04:06:43 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			181 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			181 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package api
 | |
| 
 | |
| import "strconv"
 | |
| 
 | |
| func ParseUint(s string) uint {
 | |
| 	result, err := strconv.ParseUint(s, 10, 32)
 | |
| 
 | |
| 	if err != nil {
 | |
| 		log.Warnf("api: %s", err)
 | |
| 	}
 | |
| 
 | |
| 	return uint(result)
 | |
| }
 | 
