good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2477d10a authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Move MakeName to path

parent c0741edc
No related branches found
No related tags found
Loading
...@@ -3,17 +3,9 @@ package common ...@@ -3,17 +3,9 @@ package common
import ( import (
"fmt" "fmt"
"math/big" "math/big"
"runtime"
"time" "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 // Common big integers often used
var ( var (
Big1 = big.NewInt(1) Big1 = big.NewInt(1)
......
package common package common
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"os/user" "os/user"
...@@ -12,6 +13,13 @@ import ( ...@@ -12,6 +13,13 @@ import (
"github.com/kardianos/osext" "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) { func ExpandHomePath(p string) (path string) {
path = p path = p
......
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