Golang - Array and Slices

Опубликовано: 26 Ноябрь 2022
на канале: Maksym Postument
78
1

Golang - Array and Slices
----------------------------------------------------------------------
So let's start the video! What are arrays and slices in Go? Arrays are just a slice on steroids. Both of them are homogeneous collections of variables. That means if you have an array/slice you know precisely, what kind of data all the items are stored inside the array/slice, but with an array, you can use them just like any other variable. For example, you have array [int] when you create or change value at index 2, it's not changing the contents of another index 0 or 1. But with slice thing is changing. Slices and arrays are the same under the hood, and slices have additional functionality.

----------------------------------------------------------------------
Golang - Constants
Check more on my website - https://mpostument.com/2022/11/23/go-...


Смотрите видео Golang - Array and Slices онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Maksym Postument 26 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 78 раз и оно понравилось 1 людям.