Go : Update documentation for fixing autocomplete issues
Workaround for https://github.com/syl20bnr/spacemacs/issues/7784
This commit is contained in:
parent
be72fe17f4
commit
0c91ad7acb
1 changed files with 11 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
- [[#indentation][Indentation]]
|
- [[#indentation][Indentation]]
|
||||||
- [[#tests][Tests]]
|
- [[#tests][Tests]]
|
||||||
- [[#guru][Guru]]
|
- [[#guru][Guru]]
|
||||||
|
- [[#autocomplete][Autocomplete]]
|
||||||
- [[#working-with-go][Working with Go]]
|
- [[#working-with-go][Working with Go]]
|
||||||
- [[#go-commands-start-with-m][Go commands (start with =m=):]]
|
- [[#go-commands-start-with-m][Go commands (start with =m=):]]
|
||||||
- [[#go-guru][Go Guru]]
|
- [[#go-guru][Go Guru]]
|
||||||
|
@ -114,6 +115,16 @@ searching.
|
||||||
|
|
||||||
In addition, =GOPATH= must be set prior to =go-guru= initialization.
|
In addition, =GOPATH= must be set prior to =go-guru= initialization.
|
||||||
|
|
||||||
|
** Autocomplete
|
||||||
|
=gocode= uses the output from installed binary files to provide its suggestions.
|
||||||
|
You have a few options to ensure you always get up to date suggestions:
|
||||||
|
|
||||||
|
- Run =go install ./...= in your package directory when you make a file change.
|
||||||
|
- Run =gocode set autobuild true= to have gocode attempt to run =go install
|
||||||
|
./...= for you.
|
||||||
|
- You can configure your task runner to run =go install ./...= command on every
|
||||||
|
file change.
|
||||||
|
|
||||||
* Working with Go
|
* Working with Go
|
||||||
** Go commands (start with =m=):
|
** Go commands (start with =m=):
|
||||||
|
|
||||||
|
|
Reference in a new issue