16 lines
164 B
Go
16 lines
164 B
Go
package etc
|
|
|
|
import (
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
var (
|
|
_, b, _, _ = runtime.Caller(0)
|
|
basepath = filepath.Dir(b)
|
|
)
|
|
|
|
func Path() string {
|
|
return basepath
|
|
}
|