Stack test

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

3
pkg.go
View File

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