[go-nuts] Re: Handling errors in functions

2017-06-21 Thread 'Eric Johnson' via golang-nuts
My take is something like the following would be more idiomatic // SummonerByName returns profile address and an error. We need it in case where // we cannot get the profile for some reason func SummonerByName(name string, server string) (*SummonerProfile, error) { var resp, err = http.Get(fmt.S

[go-nuts] Re: Handling errors in functions

2017-06-21 Thread suburb4nfilth
Thank you both for the suggestions. -- 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://grou