Added Init()

This commit is contained in:
Magnus Åhall 2023-09-26 08:54:26 +02:00
parent 015167f4a3
commit 1c0579d065

4
pkg.go
View File

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