typeover
curriculum

Curriculum Errors & packaging Modules & go.mod exercise 6 · fill-word

Modules & go.mod

Type the directive keyword that goes first in go.mod, before the module path. TS package.json's analog is the name field; go.mod's is shorter — a single bare keyword.

TypeScript reference
Fill the blanks →

About this theme

A module is a versioned collection of packages — your project's unit of dependency. go mod init github.com/you/yourthing produces go.mod. go get adds deps. Module paths look like URLs but don't have to resolve to anything; they're identifiers.