1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:40:55 +00:00
Beego/utils/file.go
2013-12-09 13:30:19 +08:00

12 lines
127 B
Go

package utils
import (
"os"
"path/filepath"
)
func SelfPath() string {
path, _ := filepath.Abs(os.Args[0])
return path
}