gitlab.com/evatix-go/core@v1.3.55/cmd/main/stackTrackerTest7.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/codestack" 7 ) 8 9 func stackTrackerTest7() { 10 cases := []string{ 11 "gitlab.com/evatix-go/errorwrapper/trydo.WrapPanic.func1", 12 "trydo.WrapPanic.func1", 13 "evatix-go/errorwrapper/trydo.WrapPanic.func1", 14 "", 15 "something", 16 "something.new", 17 ".....new", 18 "/", 19 " ", 20 " /", 21 " . ", 22 } 23 24 for i, s := range cases { 25 fmt.Println("index :", i) 26 fmt.Println(s, "= {") 27 signature, packageName, methodName := codestack.MethodNamePackageName(s) 28 fmt.Println(" signature =", signature) 29 fmt.Println(" pkg =", packageName) 30 fmt.Println(" methodName =", methodName) 31 fmt.Println("}\n-------") 32 } 33 }