Array in golang

preview_player
Показать описание
Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.

All the learning resources such as code files, documentations, articles and community discussions are available on our website:

You can find our discord link, github link etc on the above website.

Рекомендации по теме
Комментарии
Автор

If we don't specify a value of an element in array, it takes default value which is an empty string in case of strings. That's why it is showing an empty space there. If we use int type array there, if we don't specify value at a position, it takes 0. I thought it would give just blank space for any missing value while watching the video. Found this while doing on my own. Just posting if anyone gets the same doubt.

chiranjeevi_tirunagari
Автор

This is actually the real Array data structure. Thing that got blur on other langugaes like Javascript where arrays are not real arrays but array lists or dynamic arrays since their allocated memory is dynamic, not fixed. Really important to know these stuff for a proficient programmer!

danielvega
Автор

This works too.
var vegs = []string{"Potato", "Tomato", "Methi"}

without need to specify array size

Enchanting_Beats
Автор

I found one cool thing. you can use println without fmt and it will work.😅

dedeye
Автор

Please start a series on Gin framework with Golang please 🙏

Biswamber_Khandei
Автор

I'm waiting for Django Rest API course at

shubhasheeshkundu
Автор

In parallel universe, Tomato is in fruit list

veeresh
Автор

Sir why do we create that go.mod file, like what is its use ?

sahilkachhap
Автор

Sorry to post here but i had a question on a older post "#Flutter installation and Android setup on Windows" suggested to install flutter on windows. I am already stuck at finding the link to download the java you talk about Is it possible for you to provide the link?

gnfb