In this article we are going to do a crash course on Go’s interfaces, then in the rest of this series we will continue exploring how interfaces work, how to use them effectively, and more.
How to use slice capacity and length in Go
In Go there are both arrays and slices. This can be confusing at first, but once you get used to it you will love it. Trust me. There are many differences between slices and arrays, but the primary one we want to focus on in this article is that the size of an array is part of its type, whereas slices can have a dynamic…