From Source to Service
Project layout, modules & tooling
Lesson 2 of 5
go.mod replaces package.json, cmd/ holds your binaries, internal/ is compiler-enforced privacy, and gofmt/go vet/staticcheck keep the repo honest.
What you'll learn
- Understand go mod as the (much smaller) package.json equivalent
- Lay out a service with cmd/ for binaries and internal/ for private code
- Run the standard tooling gauntlet: gofmt, go vet, staticcheck
Members only
A free account unlocks this lesson and every other one.
Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.
Not sure yet? Try the free lesson first: A real HTTP service