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
|
||||
*** MacOS
|
||||
#+BEGIN_SRC sh :results output
|
||||
#+BEGIN_SRC sh :tangle (if (doom-system-os 'macos) "yes")
|
||||
brew install go
|
||||
#+END_SRC
|
||||
|
||||
*** 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
|
||||
#+END_SRC
|
||||
|
||||
** 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
|
||||
export GOPATH=~/.go
|
||||
#+END_SRC
|
||||
export GOPATH=~/work/go
|
||||
|
||||
Then install the necessary packages:
|
||||
|
||||
#+BEGIN_SRC sh :results output
|
||||
go get -u github.com/nsf/gocode # completion
|
||||
go get -u github.com/motemen/gore # REPL
|
||||
go get -u golang.org/x/tools/cmd/guru # code navigation commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue