April 2021
Beginner
336 pages
5h 32m
English
Chapter 2
IN THIS CHAPTER
Declaring variables
Declaring constants
Getting rid of unused variables
Manipulating strings
Converting the data type of one value to another
This chapter explores one of the foundational building blocks of programming: how to declare variables and constants in Go. This chapter also tells you how to manipulate strings in Go and how to convert data from one type to another.
In this chapter, I focus on the basic data types in Go. (I cover the other data types throughout the rest of this book.)
In programming, variables ...
Read now
Unlock full access