summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash_profile9
-rw-r--r--.goenv/version1
-rw-r--r--README.md7
3 files changed, 17 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
index 31aab5c..c04a8b3 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -67,6 +67,15 @@ if command -v pyenv 1>/dev/null 2>&1; then
export PATH="$HOME/.local/bin:$PATH"
fi
+# ==== GO config
+if [ -d $HOME/.goenv ]; then
+ export GOENV_ROOT="$HOME/.goenv"
+ export PATH="$GOENV_ROOT/bin:$PATH"
+ eval "$(goenv init -)"
+ export PATH="$GOROOT/bin:$PATH"
+ export PATH="$PATH:$GOPATH/bin"
+fi
+
# ==== Rust config
if [ -f $HOME/.cargo/env ]; then
source "$HOME/.cargo/env"
diff --git a/.goenv/version b/.goenv/version
new file mode 100644
index 0000000..ff27834
--- /dev/null
+++ b/.goenv/version
@@ -0,0 +1 @@
+1.17.5
diff --git a/README.md b/README.md
index 31cd099..171a9d1 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,13 @@ rbenv install $(cat ~/.rc/.rbenv/version)
ln -sf ~/.rc/.rbenv/version ~/.rbenv/version
```
+- Setup GO
+```bash
+git clone https://github.com/syndbg/goenv.git ~/.goenv
+# TODO: use brew install goenv (after beta release)
+ln -sf ~/.rc/.goenv/version ~/.goenv/version
+```
+
- Setup rust
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh