![]() GVM makes it extremely simple to manage installed versions of Go, but it gets even better! Using GVM pkgset You can switch your environment to use the newly installed go1.12.8 with the gvm use command: gvm use go1.12.8 GVM is still using the system version of Go, denoted by the => symbol next to it. You can install it with gvm install go1.12.8: gvm install go1.12.8Įnter gvm list, and you see Go version 1.12.8 is installed along with the system Go version (the version that comes packed using your OS's package manager): gvm list Say you're working on a project that uses Go version 1.12.8. Installing a specific Go version is as easy as gvm install, where is one of the ones returned by the gvm listall command. The GVM repository installation documentation instructs you to download the installer script and pipe it to Bash: bash I find GVM to be simple and intuitive, and even if I didn't use it to manage packages, I'd still use it to manage Go versions. ![]() There are several options for managing Go packages, including Go 1.11 Modules, built right into Go. eBook: An introduction to programming with Bash.Try for free: Red Hat Learning Subscription. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |