Stack test
This commit is contained in:
parent
a2c18bcc50
commit
c15e592827
4
pkg.go
4
pkg.go
@ -21,8 +21,8 @@ var (
|
|||||||
baseDirLength int
|
baseDirLength int
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func Init() {
|
||||||
_, file, _, _ := runtime.Caller(3)
|
_, file, _, _ := runtime.Caller(1)
|
||||||
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
|
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
|
||||||
dir := path.Dir(file)
|
dir := path.Dir(file)
|
||||||
dirBase := path.Dir(dir)
|
dirBase := path.Dir(dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user