Following up on https://stackoverflow.com/questions/50668619/autocomplete-in-golang-in-emacs, which is now over 3 years old, but technology has evolved.
I did a lot of reading on what's the latest technology regarding Emacs autocompletion, and found this post almost summarizes it all:
gocodewas slow; official version didn't support vendored packages etc.
- To get "lightning-fast development environment", use Emacs27 + "
But even that one-year-old post is somewhat outdated now, since
company-lsp is now unmaintained, and removed from melpa. It is deprecated and no longer works with lsp-mode. Also, the author is unreachable.
Moreover, down in the comment, there is one which says: "I am using
gopls and indexing is performed faster than with GoLand".
The problem for me is that all above are just talking, while I don't know elisp except copying from working code.
So, can somebody give me a working setup example that I can borrow please. Even a point to a github repo can do. thx.