Stack test

This commit is contained in:
Magnus Åhall 2023-09-26 09:04:40 +02:00
parent 806f31b69d
commit 031e85ed62

5
pkg.go
View File

@ -22,11 +22,8 @@ var (
baseDirLength int
)
func init() {
debug.PrintStack()
}
func Init() {
debug.PrintStack()
_, file, _, _ := runtime.Caller(1)
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
dir := path.Dir(file)