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