mirror of
				https://github.com/redis/go-redis.git
				synced 2025-10-30 16:45:34 +03:00 
			
		
		
		
	* utils: expose ParseFloat via new public utils package * add tests for special float values in vector search
		
			
				
	
	
		
			12 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package helper
 | |
| 
 | |
| import "github.com/redis/go-redis/v9/internal/util"
 | |
| 
 | |
| func ParseFloat(s string) (float64, error) {
 | |
| 	return util.ParseStringToFloat(s)
 | |
| }
 | |
| 
 | |
| func MustParseFloat(s string) float64 {
 | |
| 	return util.MustParseFloat(s)
 | |
| }
 |