experiments
experiments copied to clipboard
Personal code, scripts and config files for experiments
添加 log.WithCaller(true) 后 caller始终是 log/log.go ,该如何解决?
这一行代码 https://github.com/bigwhite/experiments/blob/master/go_timer_reset/example4.go#L31 为什么不选择使用defer写在for之前呢 比如24行的位置 望大佬解答~
Bumps [github.com/gogo/protobuf](https://github.com/gogo/protobuf) from 1.3.1 to 1.3.2. Release notes Sourced from github.com/gogo/protobuf's releases. Release v.1.3.2 Tested versions: go 1.15.6 protoc 3.14.0 Bug fixes: skippy peanut butter Commits b03c65e skippy peanut butter...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.23.0 to 1.34.0. Release notes Sourced from github.com/valyala/fasthttp's releases. v1.34.0 59f94a3 Update github.com/klauspost/compress (#1237) (Mikhail Faraponov) 62c15a5 Don't reset RequestCtx.s (#1234) (Erik Dubbelboer) 7670c6e Fix windows tests...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.29.0 to 1.34.0. Release notes Sourced from github.com/valyala/fasthttp's releases. v1.34.0 59f94a3 Update github.com/klauspost/compress (#1237) (Mikhail Faraponov) 62c15a5 Don't reset RequestCtx.s (#1234) (Erik Dubbelboer) 7670c6e Fix windows tests...
首先很高兴阅读你的文章,这让新手的我至少能走出第一步。 但不知道是版本问题还是怎么,目前教程中的关于response的xml加入CDATA,你文中用的方式已经不可以了。并且还有一个bug会影响消息的返回。(因为除了CreateTime之外的字段都是空了。) ```go type CDATAText struct { Value string `xml:",innerxml"` } // 应该替换为cdata。 type CDATAText struct { Value string `xml:",cdata"` } // bug,没有return值 func value2CDATA(v string) CDATAText { return CDATAText{}...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220127200216-cd36cc0744dd to 0.7.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20220214200702-86341886e292 to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20220209214540-3681064d5158 to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...