update gruf / {go-cache, go-maps, go-kv} (#3361)

This commit is contained in:
kim
2024-09-27 10:26:50 +00:00
committed by GitHub
parent 58af95a1d5
commit 2f582e2e33
7 changed files with 31 additions and 36 deletions

View File

@@ -98,8 +98,3 @@ func isNil(i interface{}) bool {
type eface struct{ _type, data unsafe.Pointer } //nolint
return (*(*eface)(unsafe.Pointer(&i))).data == nil //nolint
}
// b2s converts a byteslice to string without allocation.
func b2s(b []byte) string {
return *(*string)(unsafe.Pointer(&b))
}