<p dir="auto">As before we can have a private filed with unsupported named type, but in recently update(gomobile version +24a199a Wed Jan 13), it breaks this rule, that makes a huge impact to code, and make all types which want to be used for mobile narrows down to supported basic type....</p>
<p dir="auto">Before:</p>
<p dir="auto">The following type is working</p>
<p dir="auto">type ABC struct {<br>
WSClient<br>
}</p>
<p dir="auto">type WSClient struct {<br>
conn   *websocket.Conn<br>
}</p>
<p dir="auto">ABC is the struct exported for use in android.</p>
<p dir="auto">After:<br>
it is not working with an error message:<br>
gomobile: unsupported named type xxxx</p>
<p dir="auto">as golang.org/s/gobind says:<br>
Passing and returning a struct S promotes it to *S for the purpose of generating bindings.</p>
<p dir="auto">Currently this is not implemented.</p>