caller test

This commit is contained in:
Magnus Åhall 2023-09-26 08:49:08 +02:00
parent c63cd5fb0e
commit c73070d69a

2
pkg.go
View File

@ -22,7 +22,7 @@ var (
)
func init() {
_, file, _, _ := runtime.Caller(0)
_, file, _, _ := runtime.Caller(1)
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
dir := path.Dir(file)
dirBase := path.Dir(dir)