mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:40:55 +00:00
12 lines
127 B
Go
12 lines
127 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func SelfPath() string {
|
|
path, _ := filepath.Abs(os.Args[0])
|
|
return path
|
|
}
|