A simple command-line utility for installing, updating, and checking versions of Go tools.
- Install and update Go tools from a text file
- Check for available updates
- Show installed versions
- No external dependencies
- Cross-platform (Windows, Linux, macOS)
Build the executable:
go build -o gotoolsPlace gotools.exe (or gotools) and gotools.txt in the same directory.
gotools.txt contains one Go package per line.
Example:
github.com/cweill/gotests/gotests
github.com/josharian/impl
github.com/haya14busa/goplay/cmd/goplay
github.com/go-delve/delve/cmd/dlv
golang.org/x/tools/gopls
Empty lines and comments are ignored:
# Go tools
github.com/josharian/impl
# Language server
golang.org/x/tools/gopls
Show installed versions:
gotools listCheck for available updates:
gotools checkInstall or update all tools to the latest version:
gotools updateTo add a new tool, append its package path to gotools.txt.
Example:
github.com/fatih/gomodifytags
After saving the file, run:
gotools updateThe tool will be downloaded and installed automatically.
- Go 1.18 or newer
gocommand available in PATH- Writable
GOBINorGOPATH/bin
MIT