mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 09:33:50 +00:00
13 lines
155 B
Go
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
|
||
|
}
|
||
|
|