Golang Tutorial #2 - Variables, Data Types, & Declarations

preview_player
Показать описание
Golang Tutorial - Variables, Data Types and Declarations (Golang Introduction)

Variables in Golang can be delcared either explicitly and implicitly which is also known as short variable declaration.

I provide a visual demo to illustrate what happens in memory during variable declaration and initialization. I also touch on the default value for different data types. Understanding this is essential to working with Go pointers which many find to be a complicated topic.

**Correction**
Towards the end of the coding segment I said that the var keyword could be used in conjuction with implicit declaration. That was poor wording on my part. Instead, I should have said that the var keyword could be used to declare and initialize a variable all in one expression. Whenever you declare an actual type, it is always explicit. Apologies if that caused any confusion.

00:00 Intro
01:10 Comments in Go
01:25 Primitive Variables
04:50 Explicit Declaration
06:08 Initialization
07:08 Implicit Declaration
Рекомендации по теме
Комментарии
Автор

Can u refer me full course videos bro

rajutrends
Автор

Hi Thanks for sharing this video, Will you please share a tutorial on Websocket .Example WebSocket based quiz in go.

bhargavireddy
visit shbcf.ru