1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 23:10:55 +00:00
Beego/utils/file.go

12 lines
127 B
Go
Raw Normal View History

2013-12-09 05:30:19 +00:00
package utils
import (
"os"
"path/filepath"
)
func SelfPath() string {
path, _ := filepath.Abs(os.Args[0])
return path
}