> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Set $GOPATH
- URL: https://kudithipudi.org/howto-set-gopath/
- Published: 2018-10-28T01:01:53.000Z
- Updated: 2018-10-28T01:01:53.000Z
- Description: Been dabbling in go recently and I was surprised that the default install doesn’t setup the $GOPATH environment variable. If you are running it on a...
- Author: admin
- Tags: HOWTO, Programming, #wp, #wp-post, #Import 2026-08-23 02:32

Been dabbling in go recently and I was surprised that the default install doesn’t setup the $GOPATH environment variable.

If you are running it on a Linux box, here is how your can set the $GOPATH variable

Add the following lines to \~/.bashrc file 

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