Introduction
Develop basic programs with Go
()
What you need to know
()
Explore new code challenges on CoderPad
()
1. Getting Started
Go's essential characteristics
()
Explore basic Go syntax
()
Experiment with the Go Playground
()
Install Go on macOS
()
Install Go on Windows
()
Choose an IDE for Go programming
()
Install and configure Visual Studio Code
()
Get the exercise files from GitHub
()
Create a Hello World application
()
2. Manage Simple Variable Values
Explore Go's variable types
()
Declare and initialize variables
()
Get input from the console
()
Convert string inputs to other types
()
Use math operators
()
Use the math package
()
Work with dates and times
()
Solution: Create a simple calculator app
()
3. Manage Complex Types and Collections
How memory is allocated and managed
()
Reference values with pointers
()
Store ordered values in arrays
()
Manage ordered values in slices
()
Store unordered values in maps
()
Group related values in structs
()
Solution: Convert a slice of strings to a map
()
4. Manage Program Flow
Program conditional logic
()
Evaluate expressions with switch statements
()
Create loops with for statements
()
Solution: Calculate the value of a shopping cart
()
5. Create Reusable Code
Define and call functions
()
Define functions as methods of custom types
()
Solution: Create a more advanced calculator app
()
6. Work with Files and the Web
Write and read local text files
()
Read a text file from the web
()
Parse JSON-formatted text
()
Solution: Read a shopping cart from JSON
()