修改遗留问题
This commit is contained in:
parent
1b5503369f
commit
8b00c8f608
11
cli/cli.go
11
cli/cli.go
@ -100,15 +100,14 @@ const (
|
|||||||
// ghome 返回g根目录
|
// ghome 返回g根目录
|
||||||
func ghome() (dir string) {
|
func ghome() (dir string) {
|
||||||
//fmt.Println(os.Getenv(homeEnv))
|
//fmt.Println(os.Getenv(homeEnv))
|
||||||
path, _ := os.Getwd()
|
/* path, _ := os.Getwd()
|
||||||
return path
|
return path */
|
||||||
/* if dir = os.Getenv(homeEnv); dir != "" {
|
if dir = os.Getenv(homeEnv); dir != "" {
|
||||||
return dir
|
return dir
|
||||||
}
|
}
|
||||||
homeDir, _ := os.UserHomeDir()
|
homeDir, _ := os.UserHomeDir()
|
||||||
return filepath.Join(homeDir, ".j") */
|
return filepath.Join(homeDir, ".j")
|
||||||
/* path, _ := os.Getwd()
|
|
||||||
return path */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// inuse 返回当前的go版本号
|
// inuse 返回当前的go版本号
|
||||||
|
Loading…
x
Reference in New Issue
Block a user