[go-nuts] Re: [golang-dev] Go 1.16.3 and Go 1.15.11 are released

2021-04-02 Thread Jan Mercl
On Thu, Apr 1, 2021 at 11:52 PM Dmitri Shuralyov wrote: > We have just released Go versions 1.16.3 and 1.15.11, minor point releases. Cleared everything ($ go clean -cache -modcache -testcache ; rm -rf ~/pkg ~/.cache/go-build) and upgraded from 1.15.10 to 1.16.3. Now I am seeing while hacking so

[go-nuts] Re: Alternate implementations of regular expression matching?

2021-04-02 Thread Amnon
*Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.* I would tend to agree with this statement. Regular expressions are much abused and over-used in situations where simpler parsing techniques would be more appropriate. Beyond

Re: [go-nuts] Cover report in multiple packages

2021-04-02 Thread Kn
Add option `-coverpkg=$(go list ./...|sed 's/ /,/g')` works. On Tuesday, May 24, 2016 at 9:31:52 PM UTC+8 Dave MacFarlane wrote: > If all you're trying to do is get coverage of all your subpackages for a > CI and aren't concerned about downstream packages or manually toggling > which ones are

Re: [go-nuts] Re: [golang-dev] Go 1.16.3 and Go 1.15.11 are released

2021-04-02 Thread Jan Mercl
On Fri, Apr 2, 2021 at 4:40 PM Michael Pratt wrote: > mgcsweepbuf.go was deleted in 1.16, so it seems you still have files from > 1.15 sitting around in /usr/local/go/. I would swear I've deleted those files, but doing all the steps once again from scratch proves you are right and I can no more

Re: [go-nuts] Re: [golang-dev] Go 1.16.3 and Go 1.15.11 are released

2021-04-02 Thread 'Michael Pratt' via golang-nuts
mgcsweepbuf.go was deleted in 1.16, so it seems you still have files from 1.15 sitting around in /usr/local/go/. On Fri, Apr 2, 2021 at 4:13 AM Jan Mercl <0xj...@gmail.com> wrote: > On Thu, Apr 1, 2021 at 11:52 PM Dmitri Shuralyov > wrote: > > > We have just released Go versions 1.16.3 and 1.15.

Re: [go-nuts] string matching

2021-04-02 Thread 'wagner riffel' via golang-nuts
On Thu Apr 1, 2021 at 4:45 PM -03, Sharan Guhan wrote: > r := regexp.MustCompile(`Core Count: [0-9]+`) > match := r.FindAllStringSubmatch(cmd_output, -1) As of the "efficiently" part, you should compile the regexp once instead of each call to ParseFillCpuInfo, a common practice is to use a package

[go-nuts] proxy.golang.org has inconsistent versions with git repo for golang.zx2c4.com/wireguard

2021-04-02 Thread Ben Strauss
Hi, I'm trying to build a Go module that has a transitive dependency on golang.zx2c4.com/wireguard [1]. My organization requires me to use GOPROXY=direct. I get the following error when running any go command: go: github.com/influxdata/telegraf@v0.0.0-0001010100- requires