Commit 8845fb7e authored by Maran's avatar Maran

Add windows helper functions

parent 6426f363
......@@ -3,8 +3,20 @@ package ethutil
import (
"fmt"
"math/big"
"runtime"
)
func IsWindows() bool {
return runtime.GOOS == "windows"
}
func WindonizePath(path string) string {
if string(path[0]) == "/" && IsWindows() {
path = path[1:]
}
return path
}
// The different number of units
var (
Douglas = BigPow(10, 42)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment