<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ankit Kumar</title>
    <description>The latest articles on DEV Community by Ankit Kumar (@0xankit).</description>
    <link>https://dev.to/0xankit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F881072%2Ffeba8d01-8447-4678-aab0-375a74911b31.jpeg</url>
      <title>DEV Community: Ankit Kumar</title>
      <link>https://dev.to/0xankit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/0xankit"/>
    <language>en</language>
    <item>
      <title>Go Version manager | GVM</title>
      <dc:creator>Ankit Kumar</dc:creator>
      <pubDate>Thu, 23 Jun 2022 09:28:46 +0000</pubDate>
      <link>https://dev.to/0xankit/go-version-manager-gvm-41e7</link>
      <guid>https://dev.to/0xankit/go-version-manager-gvm-41e7</guid>
      <description>&lt;p&gt;There are several go version manager available out of which i found out GVM to be more reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go Version Manager (gvm)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Mac OS X Requirements
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;xcode-select --install&lt;br&gt;
brew update&lt;br&gt;
brew install mercurial&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  To install:
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;bash &amp;lt; &amp;lt;(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F03j6jgiwo2ikfepm2h9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F03j6jgiwo2ikfepm2h9a.png" alt="GVM installation demo by 0xankit"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;If you are using zsh just change bash with zsh&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;Then you need to add gvm to env PATH&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;And To install new go version:&lt;br&gt;
&lt;code&gt;gvm install go1.18.3&lt;br&gt;
gvm use go1.18.3 [--default]&lt;br&gt;
gvm list&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg307c3ygxj6ugt2rmc0f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg307c3ygxj6ugt2rmc0f.png" alt="GVM in action demo by 0xankit"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;gvm install go1.18.3 -B&lt;/code&gt; directly installs the binary!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;gvm list&lt;/code&gt; lists all installed go versions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;gvm listall&lt;/code&gt; lists all released go versions&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  To uninstall:
&lt;/h2&gt;

&lt;p&gt;To completely remove gvm and all installed Go versions and packages:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gvm implode&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Checkout out official GVM repo for more &lt;a href="https://github.com/moovweb/gvm" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>go</category>
      <category>gvm</category>
    </item>
  </channel>
</rss>
