DEV Community

Discussion on: Setting Up Dev Environment for Golang

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

Thanks. I want to try that extension setup.

Did you know you can use apt? This makes it easier to upgrade without downloading a version of go yourself.

sudo apt install golang-go
Enter fullscreen mode Exit fullscreen mode

And either way, setup access to installed packages

export PATH="$HOME/go/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

I don't think you need mkdir step - doesn't go create that for you when you install a package?

Collapse
 
neel229 profile image
Neel Modi

Well I was not aware of this, so it is nice of you to lay it out for others.

I don't think so it creates the go directory itself for the process I have shown.