Skip to content

Commit

Permalink
build(deps): bump github.com/catenacyber/perfsprint from 0.3.1 to 0.4…
Browse files Browse the repository at this point in the history
….0 (#4236)

Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
dependabot[bot] and ldez authored Dec 3, 2023
1 parent 5cb4973 commit 84442f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
github.com/breml/errchkjson v0.3.6
github.com/butuzov/ireturn v0.2.2
github.com/butuzov/mirror v1.1.0
github.com/catenacyber/perfsprint v0.3.1
github.com/catenacyber/perfsprint v0.4.0
github.com/charithe/durationcheck v0.0.10
github.com/curioswitch/go-reassign v0.2.0
github.com/daixiang0/gci v0.11.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/testdata/perfsprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package testdata

import (
"fmt"
"fmt" // want "Fix imports"
)

func TestPerfsprint() {
Expand Down
6 changes: 3 additions & 3 deletions test/testdata/perfsprint_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package testdata

import (
"fmt"
"fmt" // want "Fix imports"
)

func TestPerfsprint2() {
Expand All @@ -29,8 +29,8 @@ func TestPerfsprint2() {
fmt.Sprintf("%d", ui)
fmt.Sprint(ui)
fmt.Sprintf("%x", []byte{'a'}) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
fmt.Errorf("hello") // want "fmt.Errorf can be replaced with errors.New"
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"
fmt.Errorf("hello")
fmt.Sprintf("Hello %s", s) // want "fmt.Sprintf can be replaced with string addition"

fmt.Sprint("test", 42)
fmt.Sprint(42, 42)
Expand Down

0 comments on commit 84442f2

Please sign in to comment.