You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
mobile/gobind: exported struct can not be used as func parameter
cmd/gobind: exported struct can not be used as func parameter
Jan 4, 2015
This change makes gobind to generate proper Go-side proxy code to
handle interface methods that have parameters and return values.
It allows gobind to accept struct pointer types as parameters
or a return value of a method.
Fixesgolang/go#9487, golang/go#9488.
Change-Id: Id243c42ee0701d40e3871e392140368c2f8f9bc6
Reviewed-on: https://go-review.googlesource.com/2348
Reviewed-by: David Crawshaw <crawshaw@golang.org>
mikioh
changed the title
cmd/gobind: exported struct can not be used as func parameter
x/mobile/cmd/gobind: exported struct can not be used as func parameter
Aug 5, 2015
What version of Go are you using
go version devel +c7eb966 Wed Dec 24 07:30:28 2014 +0000 darwin/amd64
What operating system and processor architecture are you using?
osx 10.9.5 cross compiled for arm on Android 5.0.1 Nexus 5
What did you do?
Export a function that takes a struct pointer as a parameter
What did you expect to see?
After reading the supported types section on https://godoc.org/golang.org/x/mobile/cmd/gobind I expected this to be allowed.
What did you see instead?
panic: unsupported seqType: *golang.org/x/mobile/example/libhello/hi.StringStruct / *types.Pointer
To reproduce, modify libhello's hi package like so
Rest of the panic stack
The text was updated successfully, but these errors were encountered: