摘要: 需求: 记录所有请求的json数据 此方法即可打印所有请求的body内容,但是在对应的处理器上就取不到数据 解决办法: 阅读全文
posted @ 2019-04-12 19:01 wujf 阅读(13177) 评论(0) 推荐(0) 编辑
摘要: 导包 加载log4go 写日志 java折腾久了,日志框架还是喜欢这个 阅读全文
posted @ 2019-04-12 14:46 wujf 阅读(867) 评论(0) 推荐(0) 编辑
摘要: func getCurrentPath() string { _, filename, _, ok := runtime.Caller(1) var cwdPath string if ok { cwdPath = path.Join(path.Dir(filename), "") // the the main function file directo... 阅读全文
posted @ 2019-04-12 14:42 wujf 阅读(1339) 评论(0) 推荐(0) 编辑