Stack test

This commit is contained in:
Magnus Åhall 2023-09-26 09:12:16 +02:00
parent c15e592827
commit 32fcdb62fc

2
pkg.go
View File

@ -23,10 +23,10 @@ var (
func Init() {
_, file, _, _ := runtime.Caller(1)
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
dir := path.Dir(file)
dirBase := path.Dir(dir)
baseDirLength = len(dirBase)
fmt.Printf("--\nDIR: %s\nBASE: %s\nLENGTH: %d\n--\n", file, dirBase, baseDirLength)
}
func SetLogCallback(cbk LogCallback) {