setting up emacs for go programming language

This page summarizes the projects mentioned and recommended in the original post on /r/emacs

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • goimports

    [mirror] Go Tools (by golang)

    It seems that most Go utilities have been submerged into gopls, the LSP server. So a lot of older websites that suggest how to configure go-mode might be outdated, because of the cultural shift away from the unix-ish little, collaborative utilities approach. This means you will need a LSP client -- the Go project has some documentation on that. I'd strongly recommend Eglot, if you are uncertain what to use(0). This page explains how to install gopls with your Go toolchain.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • go-tools

    Staticcheck - The advanced Go linter

    I think that the one tool that might still be useful outside of gopls is goimports. It can be used as a gofmt replacement, that also automatically manages and removes imports. Gopls can integrate staticcheck and gofumpt, but my understanding is that they have to be installed manually. See the settings section for more on that(1).

  • GNU/Emacs go-mode

    Emacs mode for the Go programming language

    It seems that most Go utilities have been submerged into gopls, the LSP server. So a lot of older websites that suggest how to configure go-mode might be outdated, because of the cultural shift away from the unix-ish little, collaborative utilities approach. This means you will need a LSP client -- the Go project has some documentation on that. I'd strongly recommend Eglot, if you are uncertain what to use(0). This page explains how to install gopls with your Go toolchain.

  • gofumpt

    A stricter gofmt

    I think that the one tool that might still be useful outside of gopls is goimports. It can be used as a gofmt replacement, that also automatically manages and removes imports. Gopls can integrate staticcheck and gofumpt, but my understanding is that they have to be installed manually. See the settings section for more on that(1).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Po, hoje foi aceita minha primeira contribuição pra projeto opensource de terceiros!

    1 project | /r/brdev | 14 May 2022
  • New todocheck version supports jIRA via API Tokens

    1 project | /r/jira | 12 Feb 2022
  • todocheck now supports Nim

    1 project | /r/nim | 12 Feb 2022
  • todocheck now supports Kotlin

    1 project | /r/Kotlin | 12 Feb 2022
  • Any advice to improve gopls/nvim-lsp performance for a large monorepo?

    3 projects | /r/neovim | 8 Mar 2021

Did you konow that Go is
the 4th most popular programming language
based on number of metions?