caller test
This commit is contained in:
parent
c73070d69a
commit
015167f4a3
1 changed files with 1 additions and 1 deletions
2
pkg.go
2
pkg.go
|
@ -22,7 +22,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
_, file, _, _ := runtime.Caller(1)
|
_, file, _, _ := runtime.Caller(2)
|
||||||
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…
Add table
Reference in a new issue