Arrays and Slices - Learn Golang #3

preview_player
Показать описание
In this video we'll look at Arrays and Slices in Go!

Arrays and slices are a little more complicated in Golang than they are in something like Python.

For instance you can't remove or add items to an Array in Go once you've created it.

But slices give us a little more freedom than Arrays, so I'll show you both in this video.

#golang #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:01 - Create An Array
2:35 - Infer Array Length
3:10 - Use Shorthand To Create Array
3:45 - Use Shorthand and Infer Length of Array
4:25 - Change An Item In An Array
5:15 - Default Array Assignment
6:29 - Assign Items To Specific Array Positions
7:33 - Create an Array Slice
9:25 - Modify an Item In a Slice
9:58 - Add Items To a Slice
10:38 - Append Two Slices Together...
12:19 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Entire Learn Go Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code:

Codemycom
Автор

thanks bro, i have started learn golang :)

AkbarovMuhammadali
Автор

Hello John, long time since I have written you. I got wrapped up in Linux. Go reminds me of BASIC programing. Is that wierd? Especially with arrays. Do you agree?? BTW how are you doing ? I hope well. Thanks again for all of your content. Since I am still disabled and funds limited, I appreciate all of the free content that you have. It is very high quality and professional.

scottb
Автор

correction__
toppingSlice = append(toppingSlice, "PineApple")
fmt.Println(toppingSlice)

Alphabet_-_
Автор

good bro. i am uzbek. i am learning python.

data_science_uzbekistan