Skip to content

qq1u/gvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gvm

Go Version Manager

User manual

  1. Set up gvm and Go environments (only need to set once)

    • linux/mac (mac needs to be allowed in setting security): ./gvm setup
    • windows: gvm.exe setup
  2. Set the download Go source (optional)

    • view common source: gvm mirror
    • set source: gvm mirror url
      • example: gvm mirror https://mirrors.aliyun.com/golang
  3. Specify the version to install Go (example: 1.22.2)

    • gvm install 1.22.2
  4. View the current Go version

    • gvm version
  5. Install other versions of Go (example: 1.22.1)

    • gvm install 1.22.1
  6. Switch Go version

    • gvm use 1.22.2