zookeeper/get_float64.go

11 lines
178 B
Go
Raw Normal View History

2021-08-09 03:12:08 +00:00
package zookeeper
import "strconv"
// GetFloat64Value ...
func GetFloat64Value(path string) float64 {
s := GetStringValue(path)
v, _ := strconv.ParseFloat(s, 64)
return v
}