From a1602d21d9337e76af817a70a239c4c8eb69e2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 26 Sep 2023 09:12:57 +0200 Subject: [PATCH] Stack test --- pkg.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg.go b/pkg.go index 9828e08..f8512ce 100644 --- a/pkg.go +++ b/pkg.go @@ -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) }