Im trying to range over a channel and parse the key and the value to a csv file.
Is it even possible to get the key and value by ranging that kind of channel?
https://play.golang.org/p/8rbXFa1kZ91
trying it on line 25
1 Like
i think you should range over v if you want to get each pair of key, value
2 Likes
Thanks a lot. Would you like to see how i solved it?
1 Like
Althoug the csv file wasnt so pretty. itll be best to parse to a db instead
1 Like
sure
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.