File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
pkg/golinters/exptostd/testdata Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package testdata
44import (
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
1111func _ (m , a map [string ]string ) {
Original file line number Diff line number Diff 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
2222func _ () {
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import (
1717 "fmt"
1818 "unsafe"
1919
20- "golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
21- "golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
20+ "golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
21+ "golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
2222)
2323
2424func _ () {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package testdata
44import (
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
1111func _ (m , a map [string ]string ) {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package testdata
44import (
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
1111func _ (m , a map [string ]string ) {
You can’t perform that action at this time.
0 commit comments