On Monday, July 22, 2019 at 2:59:33 PM UTC-4, Burak Serdar wrote:
>
> On Mon, Jul 22, 2019 at 12:51 PM Tong Sun <sunto...@gmail.com 
> <javascript:>> wrote: 
> > 
> > I want to define a default set of values for the 
> multiple-values-returning function, so when doing error checking along the 
> way, I can return such default set when things go wrong. 
> > 
> > How can I do that? 
> > Is it possible to make the 17&18 line of the following working? 
> > https://play.golang.org/p/OX6QwWXc2ch 
>
> https://play.golang.org/p/_U4CvzTBxkX 
>


Ah, bingo! This is much better than the "goto return_defaults" solution in 
my view. THX a lot!

 

>
> > 
> > thx 
> > 
> > -- 
> > 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 golan...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/b74868fc-65a0-4b04-a898-411139b3b9f8%40googlegroups.com.
>  
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/461b3039-182d-4796-9491-3da131871363%40googlegroups.com.

Reply via email to