Custom Search

Saturday, September 16, 2017

How to Setup Golang Go Development Environment with Atom Editor IDE

1)
Setup the "GOPATH" for your Go Projects
vim ~/.bashrc

export GOROOT=$HOME/go
export PATH=$GOROOT/bin:$PATH

export GOPATH=$HOME/mygoproject1
export PATH=$GOPATH/bin:$PATH

===========


1)
sudo add-apt-repository ppa:webupd8team/atom

2)
sudo apt update

3)
Install
sudo apt install atom

4)
Remove
sudo apt remove --purge atom

============

1)
Launch Atom.
Go to "Edit" ---> "Preferences".
Click on +Install

In the Search packages search box, enter the following plugins and install it:

a) go-plus
b) atom-runner

3)
Close Atom Editor and launch it again.


4)
In the Atom Editor, go to "File" ---> "Add Project Folder".
This will bring up a Folder selection dialog and you can point it to the root of your application.

5)
Create a new file named main.go and create "Hello World" Program.

6)
Check auto-complete, Try "Ctrl-Space".

7)
Select *.go file and press "CTRL+SHIFT+P", then type "run file" and enter to run the go file.