1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 08:20:39 +00:00

beego pro init

This commit is contained in:
yitea
2020-07-04 22:58:03 +08:00
parent bb5e0435c9
commit 8758f6eaa1
17 changed files with 1652 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package system
import (
"os"
"os/user"
"path/filepath"
)
// Bee System Params ...
var (
Usr, _ = user.Current()
BeegoHome = filepath.Join(Usr.HomeDir, "/.beego")
CurrentDir = getCurrentDirectory()
GoPath = os.Getenv("GOPATH")
)
func getCurrentDirectory() string {
if dir, err := os.Getwd(); err == nil {
return dir
}
return ""
}