Curriculum Idioms & ecosystem Project layout
Project layout
cmd/<binary-name>/main.go per binary; internal/... for packages that should not be importable by other modules. Outside those two conventions, layout is up to you. The golang-standards/project-layout repo is *not* official and over-prescribes — start small.
Exercises
9 ready
01
pick one
Pick the conventional directory path for the entry-point
02
pick one
Pick the statement that's TRUE about the internal/
03
pick one
Pick the statement that's TRUE about Go's standard
04
fill blanks
Type the directory name that's the conventional parent
05
fill blanks
Type the directory name that — when used as a parent of
06
type one line
A binary's main.go (under cmd/serverd/main.go) is the
07
type one line
Following the "thin main, fat libraries" idiom: write a
08
write a program
Build a small program demonstrating the **thin main +
09
write a program
Theme 7.6 capstone — small but realistic CLI shape with