Forrest logo
back to context overview

go-mod

List of commands for go-mod:

  • go-mod:tldr:81345 go-mod: Download modules to local cache.
    $ go mod download
    try on your machine
    explain this command
  • go-mod:tldr:92404 go-mod: Add missing and remove unused modules.
    $ go mod tidy
    try on your machine
    explain this command
  • go-mod:tldr:ab3b9 go-mod: Copy sources of all dependencies into the vendor directory.
    $ go mod vendor
    try on your machine
    explain this command
  • go-mod:tldr:c6b84 go-mod: Initialize new module in current directory.
    $ go mod init ${moduleName}
    try on your machine
    explain this command
  • go-mod:tldr:c810b go-mod: Verify dependencies have expected content.
    $ go mod verify
    try on your machine
    explain this command
back to context overview