]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add two more uses of lazyregexp
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 30 May 2019 09:23:23 +0000 (10:23 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 30 May 2019 15:38:43 +0000 (15:38 +0000)
commit16796afc35de049a89da42efaad1593c26a96392
tree6b85c4026c852ff621ba4ce5a6f1a4dcb15c33a6
parent2ae793ed48eaef584e3cdcd7820d5bb891ab1a5f
cmd/go: add two more uses of lazyregexp

A couple of regexp.MustCompile globals have made their way in since we
introduced this package for cmd/go.

Convert the declarations. It's just two of them, so the cmd/go exec
benchmark isn't affected noticeably.

Change-Id: Ibd0615c99b6a049124a952c59978fd714c1b9615
Reviewed-on: https://go-review.googlesource.com/c/go/+/179358
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/modconv/dep.go
src/cmd/go/internal/sumweb/server.go