You're returning right after ranging through the first value, thus ending/exiting the function.
Try: https://play.golang.org/p/0n1g8HXxobI On Friday, November 12, 2021 at 10:20:10 AM UTC-7 bishwajits...@gmail.com wrote: > HI, need help in understanding what i am making mistake of not able to > return all the values. Below is the sample code from Playground. > https://play.golang.org/p/EMN830T0Lvr > -- 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/807fb817-5294-434c-8d99-3be09cb90d50n%40googlegroups.com.