On 4 October 2016 at 07:32, 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?
[1] No [2]. Chris [1] Capitialising the first letter will export the field name. You might not have wanted to do that. [2] Assuming that calling them sreturn, sstatus, soutput, setc isn't an acceptable option. (Looks horrible to me.) -- Chris "allusive" Dollin -- 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.