From 2e515702fce861ccdee3873fbf143d4a3596b4d2 Mon Sep 17 00:00:00 2001 From: Jean-Marc MEESSEN Date: Wed, 27 May 2020 08:26:31 +0200 Subject: [PATCH] Start some notes about Go config --- notes/enableGo.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 notes/enableGo.md diff --git a/notes/enableGo.md b/notes/enableGo.md new file mode 100644 index 0000000..9737078 --- /dev/null +++ b/notes/enableGo.md @@ -0,0 +1,12 @@ +# Enable GO + +Notes to enable/configure GO on my Mac + +``` +# GOlang related +export GOPATH="${HOME}/.go" +export GOROOT="$(brew --prefix golang)/libexec" +export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin" +test -d "${GOPATH}" || mkdir "${GOPATH}" +test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com" +``` \ No newline at end of file