Move MakeName to ethutil

This commit is contained in:
Taylor Gerring
2015-03-11 14:29:07 -05:00
parent 587f748d92
commit 485e37e889
3 changed files with 9 additions and 11 deletions

View File

@@ -13,6 +13,13 @@ import (
"github.com/kardianos/osext"
)
// MakeName creates a node name that follows the ethereum convention
// for such names. It adds the operation system name and Go runtime version
// the name.
func MakeName(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()