diff options
author | 2024-10-02 10:58:20 +0000 | |
---|---|---|
committer | 2024-10-02 10:58:20 +0000 | |
commit | c17abea92162f0ac1ccfff4223e26eac431c1198 (patch) | |
tree | ac9809f327136590a5c239c8f9594c1fea1ad989 /vendor/codeberg.org/gruf/go-structr/util.go | |
parent | [chore]: Bump go.uber.org/automaxprocs from 1.5.3 to 1.6.0 (#3376) (diff) | |
download | gotosocial-c17abea92162f0ac1ccfff4223e26eac431c1198.tar.xz |
update go-structr to v0.8.11 (#3380)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/util.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-structr/util.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/util.go b/vendor/codeberg.org/gruf/go-structr/util.go index 84c98074d..46535fcff 100644 --- a/vendor/codeberg.org/gruf/go-structr/util.go +++ b/vendor/codeberg.org/gruf/go-structr/util.go @@ -1,7 +1,5 @@ package structr -import "unsafe" - // once only executes 'fn' once. func once(fn func()) func() { var once int32 @@ -13,9 +11,3 @@ func once(fn func()) func() { fn() } } - -// eface_data returns the data ptr from an empty interface. -func eface_data(a any) unsafe.Pointer { - type eface struct{ _, data unsafe.Pointer } - return (*eface)(unsafe.Pointer(&a)).data -} |