chromeworker/proxyserver/utils.go
2020-11-23 12:19:50 +08:00

13 lines
173 B
Go

package main
import (
"log"
"runtime"
)
// 打印当前函数名
func logFunctionName() {
pc, _, _, _ := runtime.Caller(0)
log.Println(runtime.FuncForPC(pc).Name())
}