Courses
Go for Beginners: Write Reliable Programs and Small Services
Check Yourself
Five scenario questions on when Go fits, modules, go run vs go build, and the standard library.
Course content
Join this Course
Sign in to save your progress.
-
Before You Write Code
-
Why Go Exists and When to Pick It
-
Run Your First Go Program
-
-
-
Values, Control Flow, and Functions
-
Variables, Types, and Zero Values
-
If, For Loops, and Multiple Return Values
-
-
-
Slices, Maps, and Structs
-
Arrays, Slices, and Why append Matters
-
Maps, Structs, and Pointer Receivers
-
-
-
Errors, Packages, and Testing
-
Handle Errors Without Hiding Them
-
Packages, Exports, and go test
-
-
-
Files, JSON, and a Small HTTP Server
-
Read Files and Decode JSON Structs
-
Build and Test a Small net/http Server
-
-
-
Pointers, Modules, and CLIs
-
Pointers and Memory Basics
-
Managing Dependencies and internal/ Packages
-
Building CLIs With flag, os.Getenv, and Exit Codes
-
-
1.
You need to give five teammates on Linux servers a small CLI tool without installing a language runtime on any of their machines. Which Go feature solves this directly?
2.
You create a new empty folder for a Go project. Which command creates go.mod so go run and go test know your module path?
3.
You leave an unused import "os" at the top of main.go while sketching. What happens when you run go run .?
4.
Which command formats every .go file in the current directory according to Go's standard style?
5.
You need a one-off 25-line script on your own laptop to rename 40 CSV files using a quick regex. Should you switch to Go for that?
About
Five scenario questions on when Go fits, modules, go run vs go build, and the standard library.
- Duration
- 5 min
- Last update
- 11/27/2026
Was this helpful?
0
0
Comments
Sign in to commentNo comments yet.