2019-08-09 20:05:36 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/debug/gdebug"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2019-10-30 15:12:19 +08:00
|
|
|
gdebug.PrintStack()
|
2019-08-09 20:05:36 +08:00
|
|
|
fmt.Println(gdebug.CallerPackage())
|
|
|
|
fmt.Println(gdebug.CallerFunction())
|
|
|
|
}
|