bbgo_origin/bbgo/parse.go
2020-06-09 10:38:20 +08:00

13 lines
155 B
Go

package bbgo
import "strconv"
func MustParseFloat(s string) float64 {
v, err := strconv.ParseFloat(s, 64)
if err != nil {
panic(err)
}
return v
}