mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 06:40:18 +00:00
initial utils dir
This commit is contained in:
11
utils/file.go
Normal file
11
utils/file.go
Normal file
@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func SelfPath() string {
|
||||
path, _ := filepath.Abs(os.Args[0])
|
||||
return path
|
||||
}
|
Reference in New Issue
Block a user