build(deps): bump github.com/catenacyber/perfsprint from 0.3.1 to 0.4.0 (#4236)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
5cb49739c6
commit
84442f2644
2
go.mod
2
go.mod
@ -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
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -102,8 +102,8 @@ github.com/butuzov/ireturn v0.2.2 h1:jWI36dxXwVrI+RnXDwux2IZOewpmfv930OuIRfaBUJ0
|
||||
github.com/butuzov/ireturn v0.2.2/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk=
|
||||
github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI=
|
||||
github.com/butuzov/mirror v1.1.0/go.mod h1:8Q0BdQU6rC6WILDiBM60DBfvV78OLJmMmixe7GF45AE=
|
||||
github.com/catenacyber/perfsprint v0.3.1 h1:KGTSplWrKftfyqUrXAlk28z7HyoJjZWgvbjwv05fSIw=
|
||||
github.com/catenacyber/perfsprint v0.3.1/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50=
|
||||
github.com/catenacyber/perfsprint v0.4.0 h1:ZwECTVWzrJ4oW94r2OEiNEO+RKWXSibEZBPd6HkrGl4=
|
||||
github.com/catenacyber/perfsprint v0.4.0/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50=
|
||||
github.com/ccojocar/zxcvbn-go v1.0.1 h1:+sxrANSCj6CdadkcMnvde/GWU1vZiiXRbqYSCalV4/4=
|
||||
github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
|
2
test/testdata/perfsprint.go
vendored
2
test/testdata/perfsprint.go
vendored
@ -2,7 +2,7 @@
|
||||
package testdata
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt" // want "Fix imports"
|
||||
)
|
||||
|
||||
func TestPerfsprint() {
|
||||
|
6
test/testdata/perfsprint_custom.go
vendored
6
test/testdata/perfsprint_custom.go
vendored
@ -3,7 +3,7 @@
|
||||
package testdata
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt" // want "Fix imports"
|
||||
)
|
||||
|
||||
func TestPerfsprint2() {
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user