Oct 13, 2015

How to install Go lang and configure IntelliJ IDEA IDE for Go

Today I am going to talk about installation for Go lang and how to configure IDE IntelliJ IDEA for same.

Following are the steps to ready to work with Go
  1. So first start with download of Go executable package from the official website
  2. Once download GO installer
  3. Run executable package and install into the system.
  4. Going all the way to the end by clicking "next", c:/go/bin will be added to path
  5. Once complete installation go to the open command line.
  6. Type 'Go' and hit enter so you will see look like below image (Sometime not getting below screen than re-start your system and try again)
  7.  Now go to environment variables and find the GOROOT (C:\Go\) variable added by installer
  8. We need to add one more variable manually in environment variables
  9. Add new variable name GOPATH and set path your workspace (i.e D:\Work\GoWorkSpace)
  10. Now we are done Go environment setup so start for IDE configuration.
  11. Download IntelliJ IDEA IDE and install it
  12. Open IDE and install Go plugin for same.
  13. Choose File - Setting - Plugins, than click Browser repo.
  14.  Search golang,  double click download and install  and wait for the download to complete.
  15. Sometime golang not getting search from Browser repo, then you will do manually download plugin and install from 'Install Plugin from disk'
  16. Now click apply, then restart.
  17. Now we are ready to use IDE for Go Project.
  18. Next for step for setup go sdk path which basically your GOROOT path.
Hope you are getting idea how to install and configure to ready Go.

No comments:

Post a Comment