JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Go Modules from scratch: go mod init, go.mod, and go.sum

    Go SELF
    35 level,0 lecture
    Let’s break down Go’s module system in practice: what a module and a package are, how to choose a module path, create a project with go mod init, read the key directives in go.mod ( module, go, require), import your own packages using the module prefix, and why go.sum is needed for reproducibility and dependency integrity verification.
    Open
  • go mod tidy and go get — version management

    Go SELF
    35 level,1 lecture
    We will break down two key commands of Go's module system: go get (selecting and pinning module versions) and go mod tidy (synchronizing dependencies based on actual imports). We will understand how go.mod/ go.sum work, where the // indirect markers come from, how a package import differs from a module path, and what a dependency lifecycle looks like using the todoapp project as an example.
    Open
  • replace: local overrides, risks, and when it makes sense

    Go SELF
    35 level,2 lecture
    We break down the replace directive in go.mod: why you need it for locally verifying fixes without a release, how the two replacement forms work (to a local path and to another module path/version), how to wire in a neighboring module via replace, and why this easily turns into “works only on my machine” (CI, reproducibility, limitations in some commands). At the end: a checklist for when replace is appropriate, and common mistakes.
    Open
  • vendor/ in Go: when you need it and what it changes

    Go SELF
    35 level,3 lecture
    We break down what vendor/ is in Go and how it affects builds: where the go tool gets source code for imports, how vendoring differs from the module cache and the replace directive, how the directory is created via go mod vendor, what is stored in modules.txt, when vendor/ saves you (offline / isolated environment / audit), when it turns into dead weight, and which mistakes teams most often make.
    Open
  • go.work — workspace mode

    Go SELF
    35 level,4 lecture
    We break down workspace mode in Go: why the go.work file exists, how the use directive “glues” multiple modules together for local development, why this is better than temporary replace directives in go.mod, how to create and extend a workspace with go work init and go work use, how to diagnose whether the mode is enabled via GOWORK, and when it makes sense to run go work sync.
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush
MastercardVisa
"Programmers are not born" © 2026 JavaRush