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
Following are the steps to ready to work with Go
- So first start with download of Go executable package from the official website
- Once download GO installer
- Run executable package and install into the system.
- Going all the way to the end by clicking "next", c:/go/bin will be added to path
- Once complete installation go to the open command line.
- 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)
- Now go to environment variables and find the GOROOT (C:\Go\) variable added by installer
- We need to add one more variable manually in environment variables
- Add new variable name GOPATH and set path your workspace (i.e D:\Work\GoWorkSpace)
- Now we are done Go environment setup so start for IDE configuration.
- Download IntelliJ IDEA IDE and install it
- Open IDE and install Go plugin for same.
- Choose File - Setting - Plugins, than click Browser repo.
- Search golang, double click download and install and wait for the download to complete.
- Sometime golang not getting search from Browser repo, then you will do manually download plugin and install from 'Install Plugin from disk'
- Now click apply, then restart.
- Now we are ready to use IDE for Go Project.
- Next for step for setup go sdk path which basically your GOROOT path.
0 comments:
Post a Comment