Skip to content

Instantly share code, notes, and snippets.

@torufurukawa
Created March 21, 2017 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torufurukawa/e537eabb2286679d924b48cd91f10ea9 to your computer and use it in GitHub Desktop.
Save torufurukawa/e537eabb2286679d924b48cd91f10ea9 to your computer and use it in GitHub Desktop.
mkgoenv
#!/bin/bash
# activate
cat << 'EOS' > activate
export GOPATH=$(pwd)
export PATH=${PATH}:$(pwd)/bin
EOS
# VS Code setting
mkdir -p .vscode
cat << EOS > .vscode/settings.json
{
"go.gopath": "$(pwd)"
}
EOS
# repository
mkdir -p src/github.com/torufurukawa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment