Below you will find pages that utilize the taxonomy term “Golang”
Blogs
read more
Using slices in Golang
I started helping my brother with some GO projects. One really interesting concept in Go are slices… which make working with arrays easier.
At anytime you can “chop” out interesting portions of a slice to use using [start:finish].
There is the special append keyword to add things onto the end of the slice dynamically (as opposed to using the make keyword to declare it up front).
And there is a range keyword to mimic how foreach works in a higher level language.