Move p2p.MakeName to ethutil.MakeVersion

This commit is contained in:
Taylor Gerring
2015-03-02 13:21:57 -06:00
parent fb2488235a
commit e7b33e9ae7
4 changed files with 8 additions and 13 deletions

View File

@@ -13,6 +13,10 @@ import (
"github.com/kardianos/osext"
)
func MakeVersion(name, version string) string {
return fmt.Sprintf("%s/v%s/%s/%s", name, version, runtime.GOOS, runtime.Version())
}
func DefaultAssetPath() string {
var assetPath string
pwd, _ := os.Getwd()