Skip to content

Commit 4e72a5c

Browse files
committed
enable hex format
1 parent b3f925a commit 4e72a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ linters:
8787
integer-format: false
8888
int-conversion: false
8989
bool-format: false
90-
hex-format: false
9190
staticcheck:
9291
checks:
9392
- all

modules/cache/cache.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package cache
55

66
import (
7+
"encoding/hex"
78
"errors"
89
"fmt"
910
"strconv"
@@ -52,7 +53,7 @@ func Test() (time.Duration, error) {
5253
return 0, errors.New("default cache not initialized")
5354
}
5455

55-
testData := fmt.Sprintf("%x", make([]byte, 500))
56+
testData := hex.EncodeToString(make([]byte, 500))
5657

5758
start := time.Now()
5859

0 commit comments

Comments
 (0)