summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-12-17 20:30:55 +0100
committerAhmed Abdelhalim <[email protected]>2021-12-17 20:32:09 +0100
commitb568b1f13cd36c702c65d7217ed40eebab17a92a (patch)
tree48a764550c772f2e2bbf1a82c14469cde895c7cb
parent727b7434f01c721b1306b5de66a4f4f0898b862e (diff)
Add go lang instructions and install goenv
-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