typeover
curriculum

Curriculum Errors & packaging Modules & go.mod exercise 4 · mcq

Modules & go.mod

Pick the line that's the FIRST line of a typical go.mod file. (go.mod is its own mini-language — not Go source.) TypeScript's package.json has "name": "..." as the identity field; Go's go.mod has a parallel concept with a shorter form.

TypeScript reference
Pick the idiomatic Go translation

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.