/ go Public
x/mobile: function with alias type as argument or return value cannot be exported #39735
Android, iOS, and x/mobile
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
gomobile bind -target=ios demo
What did you expect to see?
What did you see instead?
I guess gobind doesn't use
demo.NewIntSet's return value type, still use
model.IntSetwhich is not exported.
To fix this issue, I have to define a new type like
type IntSet model.IntSet, in this way, it requires to rewrite all methods because now
demo.IntSetis a new type. This brings lots of work.
The text was updated successfully, but these errors were encountered: