mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
15 lines
175 B
Go
15 lines
175 B
Go
|
package tool
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
func Check(e error) {
|
||
|
if e != nil {
|
||
|
panic(e)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func ParseFloat64(str string) float64 {
|
||
|
v, _ := strconv.ParseFloat(str, 64)
|
||
|
return v
|
||
|
}
|