Skip to content

Instantly share code, notes, and snippets.

@KyonLi
Created April 23, 2019 05:42
Show Gist options
  • Save KyonLi/cc1826eba85be716aa707b6172cd5f1b to your computer and use it in GitHub Desktop.
Save KyonLi/cc1826eba85be716aa707b6172cd5f1b to your computer and use it in GitHub Desktop.
sets envs for golang
#!/bin/bash
# sets envs for golang
if [ -z "$GOPATH" ]; then
export GOROOT="/usr/local/go"
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment