From 2477d10aa0ac80b0735f3069a214c804cd6be957 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sun, 22 Mar 2015 13:46:21 +0100 Subject: [PATCH] Move MakeName to path --- common/common.go | 8 -------- common/path.go | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/common.go b/common/common.go index b5eacfdb72..6c5a69d189 100644 --- a/common/common.go +++ b/common/common.go @@ -3,17 +3,9 @@ package common import ( "fmt" "math/big" - "runtime" "time" ) -// 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()) -} - // Common big integers often used var ( Big1 = big.NewInt(1) diff --git a/common/path.go b/common/path.go index 8b95a2be6d..d38b1fd5b3 100644 --- a/common/path.go +++ b/common/path.go @@ -1,6 +1,7 @@ package common import ( + "fmt" "io/ioutil" "os" "os/user" @@ -12,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 ExpandHomePath(p string) (path string) { path = p