mirror of
https://gitee.com/johng/gf.git
synced 2024-12-09 15:48:59 +08:00
13 lines
180 B
Go
13 lines
180 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/debug/gdebug"
|
|
)
|
|
|
|
func main() {
|
|
gdebug.PrintStack()
|
|
fmt.Println(gdebug.CallerPackage())
|
|
fmt.Println(gdebug.CallerFunction())
|
|
}
|