mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 23:02:25 -06:00
update go-structr to v0.8.11 (#3380)
This commit is contained in:
parent
e3019eada4
commit
c17abea921
11 changed files with 306 additions and 91 deletions
8
vendor/codeberg.org/gruf/go-structr/util.go
generated
vendored
8
vendor/codeberg.org/gruf/go-structr/util.go
generated
vendored
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue