Your function is declared to return only a single string, and the "return"
statement returns immediately from the function with that single string, so
this is what you've coded it to do.
If you want to return multiple values, then (1) you'll have to declare the
function to return a slice of str
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