On Mon, 3 Oct 2016 23:32:17 -0700 (PDT)
David Luu <manga...@gmail.com> wrote:

> Say I wanted to define a struct like this:
> 
> type runKeywordReturnType struct{
>   return interface{}
>   status string
>   output string
>   error string
>   traceback string
> }
> 
> Seems to not work since return and error are go keywords. If I
> capitalize the first letter, that works. But say I really wanted to
> keep it all lowercase, is there a way to do so in go?

"ret" (or "retval" or "out") and "err" look even better to me,
honestly ;-)

-- 
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