lang/go: replace bootstrap with README.org
This commit is contained in:
parent
74372b71ec
commit
27fc145ee9
2 changed files with 37 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
||||||
# Go
|
|
||||||
|
|
||||||
Go support, including auto-completion (gocode), eldoc support (go-eldoc), REPL
|
|
||||||
support (gore), refactoring commands (gorename), syntax-checking (flycheck),
|
|
||||||
auto-formatting (gofmt), and snippets (yasnippet).
|
|
||||||
|
|
||||||
Snippets can be found in `private/hlissner/snippets/go-mode`.
|
|
||||||
|
|
||||||
## External Dependencies
|
|
||||||
|
|
||||||
Run `make bootstrap go` to install these.
|
|
||||||
|
|
||||||
+ Go (`brew install go`, `pacman -S go`)
|
|
||||||
+ gocode `go get -u github.com/nsf/gocode` (completion)
|
|
||||||
+ gore `go get -u github.com/motemen/gore` (REPL)
|
|
||||||
+ guru `golang.org/x/tools/cmd/guru` (code navigation commands)
|
|
||||||
+ gorename `golang.org/x/tools/cmd/gorename` (refactoring commands)
|
|
||||||
|
|
37
modules/lang/go/README.org
Normal file
37
modules/lang/go/README.org
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
* Go
|
||||||
|
|
||||||
|
Go support, including auto-completion, eldoc support (go-eldoc), REPL support,
|
||||||
|
refactoring commands, syntax-checking (flycheck), auto-formatting (gofmt) and
|
||||||
|
snippets (yasnippet).
|
||||||
|
|
||||||
|
+ [[https://golang.org][Homepage]]
|
||||||
|
+ [[../../modules/private/hlissner/snippets/go-mode][Snippets]]
|
||||||
|
+ [[../../modules/feature/file-templates/templates/go-mode][File templates]]
|
||||||
|
|
||||||
|
** Installation
|
||||||
|
*** MacOS
|
||||||
|
#+BEGIN_SRC sh :results output
|
||||||
|
brew install go
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
*** Arch Linux
|
||||||
|
#+BEGIN_SRC sh :dir /sudo:: :results output
|
||||||
|
pacman --needed --noconfirm -S go
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Dependencies
|
||||||
|
You'll need to set up ~GOPATH~. This is mine:
|
||||||
|
|
||||||
|
#+BEGIN_SRC sh
|
||||||
|
export GOPATH=~/.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/motemen/gore # REPL
|
||||||
|
go get -u golang.org/x/tools/cmd/guru # code navigation commands
|
||||||
|
go get -u golang.org/x/tools/cmd/gorename # refactoring commands
|
||||||
|
#+END_SRC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue