修改遗留问题

main
forget_the_bright 2 years ago
parent 1b5503369f
commit 8b00c8f608

@ -100,15 +100,14 @@ const (
// ghome 返回g根目录
func ghome() (dir string) {
//fmt.Println(os.Getenv(homeEnv))
path, _ := os.Getwd()
return path
/* if dir = os.Getenv(homeEnv); dir != "" {
/* path, _ := os.Getwd()
return path */
if dir = os.Getenv(homeEnv); dir != "" {
return dir
}
homeDir, _ := os.UserHomeDir()
return filepath.Join(homeDir, ".j") */
/* path, _ := os.Getwd()
return path */
return filepath.Join(homeDir, ".j")
}
// inuse 返回当前的go版本号

Loading…
Cancel
Save