Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d9bc87f

Browse files
dependabot[bot]ldez
andauthored
build(deps): bump github.com/ldez/exptostd from 0.4.4 to 0.4.5 (#6117)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent d520da6 commit d9bc87f

File tree

8 files changed

+19
-210
lines changed

8 files changed

+19
-210
lines changed

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ require (
7373
github.com/kulti/thelper v0.7.1
7474
github.com/kunwardeep/paralleltest v1.0.14
7575
github.com/lasiar/canonicalheader v1.1.2
76-
github.com/ldez/exptostd v0.4.4
76+
github.com/ldez/exptostd v0.4.5
7777
github.com/ldez/gomoddirectives v0.7.1
7878
github.com/ldez/grignotin v0.10.1
7979
github.com/ldez/tagliatelle v0.7.2

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pkg/golinters/exptostd/testdata/exptostd.go‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ package testdata
44
import (
55
"fmt"
66

7-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {
1212
maps.Clone(m) // want `golang.org/x/exp/maps.Clone\(\) can be replaced by maps.Clone\(\)`
1313

14+
maps.Keys(m) // want `golang.org/x/exp/maps\.Keys\(\) can be replaced by slices\.AppendSeq\(make\(\[\]T, 0, len\(data\)\), maps\.Keys\(data\)\)`
15+
16+
maps.Values(m) // want `golang.org/x/exp/maps\.Values\(\) can be replaced by slices\.AppendSeq\(make\(\[\]T, 0, len\(data\)\), maps\.Values\(data\)\)`
17+
1418
maps.Equal(m, a) // want `golang.org/x/exp/maps.Equal\(\) can be replaced by maps.Equal\(\)`
1519

1620
maps.EqualFunc(m, a, func(i, j string) bool { // want `golang.org/x/exp/maps.EqualFunc\(\) can be replaced by maps.EqualFunc\(\)`

‎pkg/golinters/exptostd/testdata/exptostd_cgo.go‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"fmt"
1616
"unsafe"
1717

18-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
19-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
18+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
19+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
2020
)
2121

2222
func _() {
@@ -28,6 +28,10 @@ func _() {
2828
func _(m, a map[string]string) {
2929
maps.Clone(m) // want `golang.org/x/exp/maps.Clone\(\) can be replaced by maps.Clone\(\)`
3030

31+
maps.Keys(m) // want `golang.org/x/exp/maps\.Keys\(\) can be replaced by slices\.AppendSeq\(make\(\[\]T, 0, len\(data\)\), maps\.Keys\(data\)\)`
32+
33+
maps.Values(m) // want `golang.org/x/exp/maps\.Values\(\) can be replaced by slices\.AppendSeq\(make\(\[\]T, 0, len\(data\)\), maps\.Values\(data\)\)`
34+
3135
maps.Equal(m, a) // want `golang.org/x/exp/maps.Equal\(\) can be replaced by maps.Equal\(\)`
3236

3337
maps.EqualFunc(m, a, func(i, j string) bool { // want `golang.org/x/exp/maps.EqualFunc\(\) can be replaced by maps.EqualFunc\(\)`

‎pkg/golinters/exptostd/testdata/exptostd_go123.go‎

Lines changed: 0 additions & 91 deletions
This file was deleted.

‎pkg/golinters/exptostd/testdata/exptostd_go123_cgo.go‎

Lines changed: 0 additions & 108 deletions
This file was deleted.

‎pkg/golinters/exptostd/testdata/fix/in/exptostd.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package testdata
44
import (
55
"fmt"
66

7-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {

‎pkg/golinters/exptostd/testdata/fix/out/exptostd.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package testdata
44
import (
55
"fmt"
66

7-
"maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /