Skip to content

Commit 861b345

Browse files
alexandre-dauboisdunglas
authored andcommitted
fix(extgen): replace any by interface{} in the generated go file when dealing with handles
1 parent 724c0b1 commit 861b345

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/extgen/templates/extension.go.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ type {{.GoStruct}} struct {
4343
{{- end}}
4444
{{- if .Classes}}
4545
//export registerGoObject
46-
func registerGoObject(obj any) C.uintptr_t {
46+
func registerGoObject(obj interface{}) C.uintptr_t {
4747
handle := cgo.NewHandle(obj)
4848
return C.uintptr_t(handle)
4949
}
5050

5151
//export getGoObject
52-
func getGoObject(handle C.uintptr_t) any {
52+
func getGoObject(handle C.uintptr_t) interface{} {
5353
h := cgo.Handle(handle)
5454
return h.Value()
5555
}

0 commit comments

Comments
 (0)