GNU/Emacs go-mode VS go-tools

Compare GNU/Emacs go-mode vs go-tools and see what are their differences.

GNU/Emacs go-mode

Emacs mode for the Go programming language (by dominikh)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
GNU/Emacs go-mode go-tools
4 19
1,364 5,880
- -
4.6 8.1
2 months ago 11 days ago
Emacs Lisp Go
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

GNU/Emacs go-mode

Posts with mentions or reviews of GNU/Emacs go-mode. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-25.
  • go-mode.el: Emacs mode for the Go programming language
    1 project | /r/planetemacs | 27 Jan 2022
  • setting up emacs for go programming language
    4 projects | /r/emacs | 25 Jan 2022
    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.
  • Is there an emacs equivalent of "Dash.app" ?
    6 projects | /r/emacs | 7 Aug 2021
    I haven't used Dash, so I don't know the specifics of what it works, but if it works like running pydoc or godoc or whatever Java has inside your text editor, here is a plugin for pydoc inside emacs and here's another for godoc (as part of a larger mode for go). I just tested godoc and it seems to work fine, if a little too basic.
  • How can I use the Go language on emacs?
    3 projects | /r/golang | 24 Apr 2021
    This question makes very little sense to be honest. Try using spacemacs. It has a go language server runner. Otherwise try this https://github.com/dominikh/go-mode.el

go-tools

Posts with mentions or reviews of go-tools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-27.
  • Ask HN: What are some interesting tools or code repos you discovered recently
    1 project | news.ycombinator.com | 25 Aug 2023
  • Gopher Pythonista #1: Moving From Python To Go
    3 projects | dev.to | 27 Jul 2023
    Another useful tool in Go is the go vet command, which helps to identify common coding mistakes such as unreachable code or useless comparisons. In addition, external linters like staticcheck can be used to detect bugs and performance issues with ease.
  • Find project-wide unused code using Golang's LSP
    2 projects | /r/golang | 23 May 2023
    For the last year or so (as of 2023) Golang has only had one active project for linting unused code, namely: unused from https://github.com/dominikh/go-tools. It works really well, but only within a package, not across packages, like within a traditional monolith. unused used to be part of another project called staticcheck, that did indeed have a flag for detecting project-wide unused code, but that is no longer supported. There are good reasons for that (see this Github discussion), mainly that it's computationally expensive.
  • Why tf golang let's you create maps with duplicated keys
    1 project | /r/golang | 4 May 2023
    To a degree, sure. It can't pick it up in general, because of the halting problem. But some trivial cases could be caught. Feel free to write such a linter, I'm sure Dominik would gladly merge it, for example.
  • Tools besides Go for a newbie
    36 projects | /r/golang | 26 Mar 2023
    IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
  • New linter for mixing pointer and value method receivers
    2 projects | /r/golang | 30 Nov 2022
    Also proposal to staticcheck, will see if it goes through! https://github.com/dominikh/go-tools/issues/1337
  • this result of append is never used, except maybe in other appends (SA4010)
    1 project | /r/golang | 10 Nov 2022
    This is the first result for that error in google. The comment in that issue explains it. You're building two array's c_code, and c_start_date which are built and then never read or returned or otherwise used.
  • Zig, the Small Language
    13 projects | news.ycombinator.com | 7 Sep 2022
    This really irritated me when I started working with go, but it stopped bothering me and now I even mostly like it.

    The missing error checks are annoying, but if you have appropriate editor config it is hard to miss them: https://cdn.billmill.org/static/newsyctmp/warning.png

    Basically writing go without `staticcheck`[1] is not recommended. If you do have it set up, it's pretty easy to avoid simple errors like that.

    [1]: https://staticcheck.io/

  • Our experience upgrading from go v1.17 to v1.18 for generics
    2 projects | /r/golang | 20 Jul 2022
    However, recently [per this issue](https://github.com/dominikh/go-tools/issues/1270) it is safe to re-enable the ones I highlighted with strikethrough above. I would be interested in tracking issues for the remainder if you have those linked somewhere.
  • What are your strategies to prevent nil pointers errors in your code base?
    3 projects | /r/golang | 24 Jun 2022
    Unfortunately I don't know of any tools that can/do always detect it. There's this discussion for the staticcheck linter where they basically don't think it's worth false positives in order to support it a lint for it.

What are some alternatives?

When comparing GNU/Emacs go-mode and go-tools you can also consider the following projects:

vim-go - Go development plugin for Vim

revive - 🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint

lsp-mode - Emacs client/library for the Language Server Protocol

gosec - Go security checker

Go for Visual Studio Code

golangci-lint - Fast linters Runner for Go

Watch - Watches for changes in a directory tree and reruns a command in an acme win or just on the terminal.

gofumpt - A stricter gofmt

vscode-go - Go extension for Visual Studio Code

ls-lint - An extremely fast directory and filename linter - Bring some structure to your project filesystem

vscode-go-doc - An Microsoft Visual Code extension for Golang to print symbol definition to output

go-sql-driver/mysql - Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package