Quick Reference

Initialize Module

go mod init github.com/you/hello
go mod init gitlab.com/sergei.gnezdov/project_name


Code Completion is Slow in VSC

Update June 6, 2019 - gocode has been replaced with GO language server. It might be “optional”, but my configuration is “opt-in”.

gopls is used by GO VSCode extension now.

Try running gocode in debug mode:

gocode -s -debug