mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 21:59:05 +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())
|
|
}
|