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
Solution: Create a simple calculator app
()
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
()
3. Manage Complex Types and Collections
Solution: Convert a slice of strings to a map
()
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
()
4. Manage Program Flow
Solution: Calculate the value of a shopping cart
()
Program conditional logic
()
Evaluate expressions with switch statements
()
Create loops with for statements
()
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
Solution: Read a shopping cart from JSON
()
Write and read local text files
()
Read a text file from the web
()
Parse JSON-formatted text
()