Courses
Go for Beginners: Write Reliable Programs and Small Services
Check Yourself
Five questions on Go pointers, internal/ packages, go mod tidy, and CLI flags and exit codes.
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.
What happens if you pass a plain `int` to `func doubleVal(x int) { x *= 2 }`?
2.
Who can import `example.com/ordersvc/internal/money`?
3.
Which command removes unused dependencies from `go.mod` and adds any missing ones?
4.
Why write `run(args []string) int` instead of calling `os.Exit(1)` inside helper functions?
5.
Where should a Go CLI write error messages?
About
Five questions on Go pointers, internal/ packages, go mod tidy, and CLI flags and exit codes.
- Duration
- 5 min
- Last update
- 11/27/2026
Was this helpful?
0
0
Comments
Sign in to commentNo comments yet.