<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>for-loop on Golang</title><link>https://golang.k5kc.com/tags/for-loop/</link><description>Recent content in for-loop on Golang</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Aug 2020 00:14:00 +0530</lastBuildDate><atom:link href="https://golang.k5kc.com/tags/for-loop/index.xml" rel="self" type="application/rss+xml"/><item><title>Go - for ... range</title><link>https://golang.k5kc.com/2020/08/16/5.range/</link><pubDate>Sun, 16 Aug 2020 00:14:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/5.range/</guid><description>Intro for ... range clause can be used to iterate 5 types of variables: array, slice, string, map and channel, and the following sheet gives a summary of the items of for ... range loops:
Type 1st Item 2nd Item Array index value Slice index value String index (rune) value (rune) Map key value Channel value Example - Iterating on slice package main import &amp;#34;fmt&amp;#34; func main() { s := [] {1,2,3} for i,v := range s { fmt.</description></item></channel></rss>