We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deb7464 commit bcefaacCopy full SHA for bcefaac
utils/convert_s2b_new.go
@@ -8,8 +8,6 @@ import (
8
)
9
10
// UnsafeBytes returns a byte pointer without allocation.
11
-//
12
-//nolint:gosec // unsafe is used for better performance here
13
func UnsafeBytes(s string) []byte {
14
return unsafe.Slice(unsafe.StringData(s), len(s))
15
}
0 commit comments