diff options
author | 2024-09-27 10:26:50 +0000 | |
---|---|---|
committer | 2024-09-27 10:26:50 +0000 | |
commit | 2f582e2e33b2bae06e136bd2a547a934a6700074 (patch) | |
tree | ade1642ba12d27ae8f38b7e88b170f5491c5e0fc /vendor/codeberg.org/gruf/go-kv/format/util.go | |
parent | [chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356) (diff) | |
download | gotosocial-2f582e2e33b2bae06e136bd2a547a934a6700074.tar.xz |
update gruf / {go-cache, go-maps, go-kv} (#3361)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/format/util.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-kv/format/util.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/format/util.go b/vendor/codeberg.org/gruf/go-kv/format/util.go index 79cb30981..dbb918952 100644 --- a/vendor/codeberg.org/gruf/go-kv/format/util.go +++ b/vendor/codeberg.org/gruf/go-kv/format/util.go @@ -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)) -} |