How to Manage Go Versions with asdf

Cli
Install the asdf-go plugin and use asdf install, global, and local commands to manage Go versions.

Manage Go versions with asdf by installing the plugin, adding a version, and setting it globally or locally.

  1. Install the Go plugin: asdf plugin add go https://github.com/knqyf263/asdf-go.git
  2. List available Go versions: asdf list all go
  3. Install a specific version: asdf install go 1.22.0
  4. Set the global default version: asdf global go 1.22.0
  5. Set a local version for the current project: asdf local go 1.21.0