mirror of
https://github.com/astaxie/beego.git
synced 2024-11-16 20:00:54 +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
|
|
}
|