Golang linter for performance, aiming at usages of fmt.Sprintf
which have faster alternatives.
go get github.com/catenacyber/perfsprint@latest
perfsprint --fix ./...
fmt.Sprintf("%s", strVal) -> strVal
fmt.Sprintf("%t", boolVal) -> strconv.FormatBool(boolBal)
fmt.Sprintf("%x", hash) -> hex.EncodeToString(hash)
fmt.Sprintf("%d", id) -> strconv.Itoa(id)
fmt.Sprintf("%v", version) -> strconv.FormatUint(uint64(version), 10)
More in tests.