aboutsummaryrefslogtreecommitdiff
path: root/bytesconv_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-03-02 17:21:23 +0200
committerGravatar GitHub <noreply@github.com> 2024-03-02 16:21:23 +0100
commit7e1fb718543e4e00f807f081b63ba387570690f4 (patch)
tree1e0113099797442dffa8e77f4b1062c25d3de4be /bytesconv_test.go
parenttest: remove `//nolint:govet` comments (#1729) (diff)
downloadfasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.tar.gz
fasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.tar.bz2
fasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.zip
Enable perfsprint linter; fix up lint issues (#1727)
Diffstat (limited to 'bytesconv_test.go')
-rw-r--r--bytesconv_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bytesconv_test.go b/bytesconv_test.go
index 4449810..54e5e20 100644
--- a/bytesconv_test.go
+++ b/bytesconv_test.go
@@ -3,10 +3,10 @@ package fasthttp
import (
"bufio"
"bytes"
- "fmt"
"html"
"net"
"net/url"
+ "strconv"
"testing"
"time"
@@ -118,7 +118,7 @@ func testAppendIPv4(t *testing.T, ipStr string, isValid bool) {
}
func testAppendUint(t *testing.T, n int) {
- expectedS := fmt.Sprintf("%d", n)
+ expectedS := strconv.Itoa(n)
s := AppendUint(nil, n)
if string(s) != expectedS {
t.Fatalf("unexpected uint %q. Expecting %q. n=%d", s, expectedS, n)