good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8845fb7e authored by Maran Hidskes's avatar Maran Hidskes
Browse files

Add windows helper functions

parent 6426f363
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment