1 Star 0 Fork 0

wukai/GoStudy

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
function_anony_debug.go 338 Bytes
一键复制 编辑 原始数据 按行查看 历史
君町love 提交于 2019-01-15 12:04 +08:00 . Package change
package function
import (
//"runtime"
"log"
)
// 匿名函数作为调试
func Debug() {
// where := func() {
// _, file, line, _ := runtime.Caller(1)
// log.Printf("%s:%d", file, line)
// }
where := log.Print
where()
// some code
FuncAsParm(100, AddParm)
where()
// some more code
FuncAsParm(100, AddParm)
where()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/thinkerwolf/GoStudy.git
git@gitee.com:thinkerwolf/GoStudy.git
thinkerwolf
GoStudy
GoStudy
62820d0e2c88

搜索帮助