x/mobile/cmd/gomobile: gomobile bind returning io.Reader errors #12571
Labels
Milestone
Comments
That first error is surprising. If you try with the go tool, does your package compile? The second error is an existing limit of gobind. It can work on *KeyExchange, but not KeyExchange. (We are considering support for the latter, but there's a lot to do and few of us to do it.) |
it compiles under go build, just not under gomobile bind. here's a gist of what fails: https://gist.github.com/garry415/bd83a3693bf03dbd5438 |
It seems the error is because you're using an external type, doing something like this works: https://gist.github.com/mehlon/233261a982d81bfbf5de. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running into an error when running "gomobile bind --target=ios":
gomobile: type io.Reader not defined in package package goax ("github.com/garry415/goax")
unsupported, direct named type github.com/garry415/goax.KeyExchange: struct{IdentityPublic []byte "bencode:"identity""; Dh []byte "bencode:"dh""; Dh1 []byte "bencode:"dh1""}
I'm importing "io" and KeyExchange has only private fields. I don't think it should report this error.
Environment: Go 1.5, OS X Yosemite 10.10.4
The text was updated successfully, but these errors were encountered: