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 baseDirLength int
) )
func init() {
debug.PrintStack()
}
func Init() { func Init() {
debug.PrintStack()
_, file, _, _ := runtime.Caller(1) _, 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)