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

Показать описание
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
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
Golang Tutorial #2 - Variables & Data Types
Golang Tutorial #2 - Variables, Data Types, & Declarations
Golang Tutorial - 2 Variables
Golang - Lesson 2 - Variables - The Go Programming Language - Quick Courses
Golang Tutorial #2 - Variables & Data types
Golang - Variables
Go Programming (golang) - 02: Variables
Golang Variables
Assigning Multiple Variables - Beginner Friendly Golang
Apprendre le Golang Français 2 - Variables & Conditions
Go Golang Programming 2 - Variables
Golang for Beginners - 8 - Global Variables
Golang Course #2. Variables in Go. How not to annoy Go compiler
Tutorial Belajar Golang [Dasar] - 2 - #Variable
Learn Go Programming (golang) - 2: Funcs, Types, and Memory
Golang tutorial - variables
Golang Tutorial: Variables
Variables and Constants In Go - Learn Golang #2
Learn Golang By Example Part 2 - Variables
Golang Tutorial #3 - Assignment Expression & Implicit vs Explicit
Golang for Beginners - 6 - Declaring Multiple Variables on One Line
Golang Crash Course Ep 2 - Go Variables
How to use variables in Golang?- Part 2 | Golang Tutorial Series
GoLang Tutorial: Go Basic Components; Packages, Variables and Functions | Go Tutorial for Beginners
Комментарии