This is a created article in which the information may have evolved or changed.
My device is Windows x64, loaded with Liteide and Go's basic environment.
In the process of writing code, the intelligent hints are relatively few, the search value Gocode can solve this dilemma.
- Settings for Environment variables
Goroot C:\Go
GOOS windows (don't capitalize on Windows here)
Goarch AMD64
Gopath C:\GoPath (This folder is created manually)
PATH Increase C:\Go\bin
- In order to install and facilitate later management Gocode download and install the Git tool: https://git-for-windows.github.io/
- Go the next step to finish, start Git-bush, and then use the script to
go get -u -ldflags -H=windowsgui github.com/nsf/gocode
install Gocode
- After completing the installation of Gocode, locate the
GOPATH
"bin" folder below and overwrite "Gocode.exe" into Liteide's "bin" folder
Done.