Introduces the tools and skills used in a Go workflow—including Go Playground, an online tool that takes Go development off the desktop.
Overview
Syllabus
Introduction
- Develop basic programs with Go
- What you need to know
- Explore new code challenges on CoderPad
- 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
- 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
- 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
- Program conditional logic
- Evaluate expressions with switch statements
- Create loops with for statements
- Solution: Calculate the value of a shopping cart
- Define and call functions
- Define functions as methods of custom types
- Solution: Create a more advanced calculator app
- Write and read local text files
- Read a text file from the web
- Parse JSON-formatted text
- Solution: Read a shopping cart from JSON
- Next steps
Taught by
David Gassner