Closed maginemu closed 5 years ago
Hello,
You are seeing numbers because your for
loop is incorrect. In Go, for
loops that use the range keyword supply an index value only in the default case. If you want the actual value you need to write it like the following:
for _, item := range s.ToSlice(){
fmt.Println(item)
}
Hello, thank you for your kind reply. I got it.
Simple example
produces below:
Is this designed behavior?
I expected below:
(I found I could use s.Iter() to produce expected output though)