Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotools

A simple command-line utility for installing, updating, and checking versions of Go tools.

Features

  • Install and update Go tools from a text file
  • Check for available updates
  • Show installed versions
  • No external dependencies
  • Cross-platform (Windows, Linux, macOS)

Installation

Build the executable:

go build -o gotools

Place gotools.exe (or gotools) and gotools.txt in the same directory.

gotools.txt

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

Usage

Show installed versions:

gotools list

Check for available updates:

gotools check

Install or update all tools to the latest version:

gotools update

Adding New Tools

To add a new tool, append its package path to gotools.txt.

Example:

github.com/fatih/gomodifytags

After saving the file, run:

gotools update

The tool will be downloaded and installed automatically.

Requirements

  • Go 1.18 or newer
  • go command available in PATH
  • Writable GOBIN or GOPATH/bin

License

MIT

About

A simple command-line utility for installing, updating, and checking versions of Go tools

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages