You can't, at least not yet. The use of the builtin error type is an 
implementation detail of CL 24100 which is about how errors and exceptions 
are represented in the generated bindings. The CL does make the path toward 
exposing error to the native languages easier in the future.

 - elias

On Monday, June 27, 2016 at 4:16:40 PM UTC+2, tenntenn wrote:
>
> Hi, all.
>
> In order to understand how gomobile bind works, I tried to run commands 
> (gobind, go build and etc.) step by step.
> But I could not generate a builtin error type binding by gobind command.
> This change makes to be able to generate builtin error type bindings by 
> gomobile bind command.
> https://go-review.googlesource.com/#/c/24100/
>
> How can I generate a builtin error type binding by gobind command?
> I think that gobind command also should be fixed to accept nil package 
> (universe scope).
>
> Thanks,
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to