]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add and use cmd/go/internal/slices.Clip
authorRuss Cox <rsc@golang.org>
Mon, 30 Jan 2023 18:21:34 +0000 (13:21 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 30 Jan 2023 19:26:42 +0000 (19:26 +0000)
commit57f9ed5f12ba395fa55880305bc11e1db840f36c
treef43f787734b5ae4d4f15afe4a32c9939d010cd75
parent709b6578722b0b1cb074f819e5cb22960fa31180
cmd/go: add and use cmd/go/internal/slices.Clip

This will be part of the standard library soon and then
cmd/go can use it directly, but I am writing a few more instances
of this pattern today and wanted to clean these up first.

Change-Id: I3a7336039949ffe95a403aed08d79206c91eafb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/464115
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/go/internal/generate/generate.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/query.go
src/cmd/go/internal/mvs/graph.go
src/cmd/go/internal/slices/slices.go [new file with mode: 0644]
src/cmd/go/internal/test/test.go
src/cmd/go/internal/vcweb/git.go
src/cmd/go/internal/vcweb/hg.go
src/cmd/go/internal/work/exec.go