Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 662 Bytes

g.md

File metadata and controls

51 lines (34 loc) · 662 Bytes

g

References

Installation

Unix-like

wget https://raw.githubusercontent.com/stefanmaric/g/0.6.0/bin/g -P /usr/local/bin
chmod +x /usr/local/bin/g

Environment

Darwin

For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:

# g
export GOPATH="$HOME/.go"
export GOBIN="$GOPATH/bin"
export PATH="$GOBIN:$PATH"
export GOROOT='/usr/local/go'
sudo su - "$USER"

Configuration

mkdir -p "$GOPATH" "$GOBIN"

sudo mkdir -p /usr/local/go

sudo chown -R "$(whoami)" /usr/local/go

Commands

g -h