github.com/gogf/gf@v1.16.9/.example/debug/gdebug/gdebug.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "github.com/gogf/gf/debug/gdebug" 6 ) 7 8 func main() { 9 gdebug.PrintStack() 10 fmt.Println(gdebug.CallerPackage()) 11 fmt.Println(gdebug.CallerFunction()) 12 }