go: Setup

csmcsm
1 min read

Requirements:

  1. os: linux mint

  2. go version: 1.22.5 or above

  3. vs code (with go extension)


Steps:

  1. Download go package from go's website.

  2. Unpack it in a place of your choice.

  3. Add go binary path to PATH environment variable:

    • Add this line to .bashrc file:
export PATH=$PATH:path-to-go-binary
  1. Test it:

    • Open terminal and run:
go version

Output (would be something like this):

go version go1.22.5 linux/amd64

  1. Open vs code and install go's official extension from extensions.

  2. It will ask for downloading some tools(like gopls) for go development,

    click on install.

  3. Now you are good to go!

0
Subscribe to my newsletter

Read articles from csm directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

csm
csm