Lets Go | Arrays in GoLang | Go Programming Language

Опубликовано: 29 Май 2021
на канале: Cognitive Programmer
406
17

Lets Go. Welcome to the video series on Go Programming Language i.e. GoLang.

In this video, In this video, I'm talking about arrays in go programming language. Though in general arrays are not used so much in programming language and the preferred way to use the golang slices instead, but it doesn't mean that you should and must not learn about golang arrays beccause arrays are the building block of many things including slices.

This is the simplest possible explanation of arrays in go programming language and yes there are many things which I've not covered in detail because it might be overwhelming as a newcomer in go programming language. However, when we move further in go programming language, it will be clear to all of use

Arrays are data structures and in go programming language the length of arrays are part of the array type. It means that array of size 3 and array of size 4 is not the same. This is where golang is different from C, C++ or Java i.e. the size of an array is the part of the type.

In this video I've also talked about how to initialize an array using the composite literals. Composite literals are extremely important for go and it is used not only in arrays but also in the slices.

I hope and believe that you'll like this video. Here are the contents of this video


Timecodes
0:00 : Lets Go - Arrays in Go
0:37 : Slices are preferred than arrays
1:28 : Variables in GoLang
2:18 : Go initializes all variables to default values
2:58 : Arrays in golang
4:11 : Length of an array in go
4:25 : In Golang arrays are values
5:42 : Arrays length is part of the array type
7:01 : for loop in go Programming Language
8:21 : Composite literals in go array
9:35 : composite literals in golang using 3 dots


#golang #programming #goarrays #goslices #goprogramming

About Me i.e. An Insightful Techie

Greetings and Thanks a lot for checking out my YouTube Channel. I’m Deepak K Gupta (Daksh). This channel is a medium for me to share my learnings and journey as a Techie so that you not only learn from my experience but also from my mistakes

As a techie I am closely associated with software development, so most of my content will revolve around Programming Languages, AI, Machine learning and Databases. I share things which will help you learn, remember and use these things in an effective and efficient way.

As a Techie, I also know that there is a life beyond software development and it has a profound impact on our career as well as on our well being. I also share those learnings which I feel are worth sharing with the intention that it MAY help you in taking better decisions in your life.

Last but not the least, I'm a traveler and explorer by nature. I would like to take you with me on some of the interesting journeys around the world. Believe me there is more to learn outdoors than indoors

Hope you’ll like my contents and will be part of my journey 🙏

SUBSCRIBE - https://www.youtube.com/AnInsightfulT...
INSTAGRAM - https://www.intagram.com/AnInsightful...
Twitter -   / awisetechie  
Facebook -   / aninsightfultechie