File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
package testdata
3
3
4
4
import (
5
- "fmt"
5
+ "fmt" // want "Fix imports"
6
6
)
7
7
8
8
func TestPerfsprint () {
Original file line number Diff line number Diff line change 3
3
package testdata
4
4
5
5
import (
6
- "fmt"
6
+ "fmt" // want "Fix imports"
7
7
)
8
8
9
9
func TestPerfsprint2 () {
@@ -29,8 +29,8 @@ func TestPerfsprint2() {
29
29
fmt .Sprintf ("%d" , ui )
30
30
fmt .Sprint (ui )
31
31
fmt .Sprintf ("%x" , []byte {'a' }) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
32
- fmt .Errorf ("hello" ) // want "fmt.Errorf can be replaced with errors.New"
33
- fmt .Sprintf ("Hello %s" , s ) // want "fmt.Sprintf can be replaced with string addition"
32
+ fmt .Errorf ("hello" )
33
+ fmt .Sprintf ("Hello %s" , s ) // want "fmt.Sprintf can be replaced with string addition"
34
34
35
35
fmt .Sprint ("test" , 42 )
36
36
fmt .Sprint (42 , 42 )
You can’t perform that action at this time.
0 commit comments