Compare commits

...

3 Commits

Author SHA1 Message Date
1c0579d065 Added Init() 2023-09-26 08:54:26 +02:00
015167f4a3 caller test 2023-09-26 08:50:57 +02:00
c73070d69a caller test 2023-09-26 08:49:08 +02:00

4
pkg.go
View File

@ -21,8 +21,8 @@ var (
baseDirLength int baseDirLength int
) )
func init() { func Init() {
_, file, _, _ := runtime.Caller(0) _, 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)
dirBase := path.Dir(dir) dirBase := path.Dir(dir)