Compare commits

..

No commits in common. "master" and "v1.0.4" have entirely different histories.

8
str.go
View File

@ -126,11 +126,3 @@ func GetEnvDefault(key, defval string) string {
return defval
}
}
// fix hex string to no 0x prefix
func FixToNo0x(hexstr string) string {
if strings.HasPrefix(hexstr, "0x") {
return hexstr[2:]
}
return hexstr
}