ago is a wrapper around the go command that adds the ability to alias packages with short, memorable names. Only the get and install commands are affected. All other flags and arguments are passed through to the go command.
go install github.com/deitrix/ago@latest
By default, ago stores aliases in $HOME/.ago/
. This can be changed by setting
the AGO_CONFIG_DIR
environment variable.
Define a package alias:
ago alias foo github.com/foo/bar/v2
Get a package using the alias:
ago get foo
List package aliases:
ago alias ls
Remove a package alias:
ago alias rm foo
- Make
ago help
a bit more consistent withgo help