lang/go: update README
This commit is contained in:
parent
258881a996
commit
0ded668d85
1 changed files with 4 additions and 8 deletions
|
@ -10,25 +10,21 @@ snippets (yasnippet).
|
||||||
|
|
||||||
** Installation
|
** Installation
|
||||||
*** MacOS
|
*** MacOS
|
||||||
#+BEGIN_SRC sh :results output
|
#+BEGIN_SRC sh :tangle (if (doom-system-os 'macos) "yes")
|
||||||
brew install go
|
brew install go
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Arch Linux
|
*** Arch Linux
|
||||||
#+BEGIN_SRC sh :dir /sudo:: :results output
|
#+BEGIN_SRC sh :dir /sudo:: :tangle (if (doom-system-os 'arch) "yes")
|
||||||
pacman --needed --noconfirm -S go
|
pacman --needed --noconfirm -S go
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Dependencies
|
** Dependencies
|
||||||
You'll need to set up ~GOPATH~. This is mine:
|
You need to set up ~GOPATH~ before you can install lang/go's dependencies.
|
||||||
|
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
export GOPATH=~/.go
|
export GOPATH=~/work/go
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Then install the necessary packages:
|
|
||||||
|
|
||||||
#+BEGIN_SRC sh :results output
|
|
||||||
go get -u github.com/nsf/gocode # completion
|
go get -u github.com/nsf/gocode # completion
|
||||||
go get -u github.com/motemen/gore # REPL
|
go get -u github.com/motemen/gore # REPL
|
||||||
go get -u golang.org/x/tools/cmd/guru # code navigation commands
|
go get -u golang.org/x/tools/cmd/guru # code navigation commands
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue