<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>two-dimensional on Golang</title><link>https://golang.k5kc.com/tags/two-dimensional/</link><description>Recent content in two-dimensional on Golang</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Aug 2020 00:12:00 +0530</lastBuildDate><atom:link href="https://golang.k5kc.com/tags/two-dimensional/index.xml" rel="self" type="application/rss+xml"/><item><title>Golang Slices</title><link>https://golang.k5kc.com/2020/08/16/3.slices/</link><pubDate>Sun, 16 Aug 2020 00:12:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/3.slices/</guid><description>Intro A slice in Golang is an abstraction that sits on top of an array. An array normally has a set size and must be initialised with a size. A slice is a little more like an array in javascript or an ArrayList in Java.
A slice is a descriptor of an array segment. It consists of a pointer to the array, the length of the segment, and its capacity (the maximum length of the segment).</description></item><item><title>Golang Collections Intro</title><link>https://golang.k5kc.com/2020/08/16/1.collections-intro/</link><pubDate>Sun, 16 Aug 2020 00:10:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/1.collections-intro/</guid><description>Golang has two main collection types.
maps.
arrays and slices</description></item><item><title>Two-dimensional slice</title><link>https://golang.k5kc.com/2020/08/16/two-dimensional-slice/</link><pubDate>Sun, 16 Aug 2020 00:10:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/two-dimensional-slice/</guid><description>Go supports multiple-dimensional slice, but I only want to introduce two-dimensional slice here. One reason is the two-dimensional slice is usually used in daily life, while multiple-dimensional seems not common. If you often use multiple-dimensional slice, personally I think the code is a little clumsy and not easy to maintain, so maybe you can try to check whether there is a better method; the other reason is the principle behind multiple-dimensional slice is the same with two-dimensional slice, you can also understand it if you know two-dimensional slice well.</description></item></channel></rss>