mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
utils: export ParseFloat and MustParseFloat wrapping internal utils (#3371)
* utils: expose ParseFloat via new public utils package * add tests for special float values in vector search
This commit is contained in:
11
helper/helper.go
Normal file
11
helper/helper.go
Normal file
@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user