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