chromeworker/proxyserver/utils.go

13 lines
173 B
Go
Raw Normal View History

2020-11-23 04:19:50 +00:00
package main
import (
"log"
"runtime"
)
// 打印当前函数名
func logFunctionName() {
pc, _, _, _ := runtime.Caller(0)
log.Println(runtime.FuncForPC(pc).Name())
}