Re: [go-nuts] gomobile/gobind failing to build a library with interface argument

2023-11-28 Thread Bruno Albuquerque
The way around that is to usually wrap the API you want to use and only expose what you actually need. When you need something with some type of unsupported parameter or return type, write some code around it to convert to sensible supported types. Here is an example of what I end up doing instead

[go-nuts] gomobile/gobind failing to build a library with interface argument

2023-11-28 Thread Kevin Wang
I'm trying to build https://github.com/pion/webrtc with gomobile but I'm running into this error. To reproduce, clone and then run gomobile bind . gobind/go_webrtcmain.go:86:19: cannot use (*proxywebrtc_TrackLocal)(_param_track_ref) (value of type *proxywebrtc_TrackLocal) as webrtc.TrackLocal v