go get -u github.com/1pkg/gomer
Gomer is a cli tool that can quicly search and cache go module index database to provide the abilitty to match modules based on regular expression for mobule path or semver constraint for module version.
gomer -h
Usage of gomer: [-f val] [-f val] <module_path_regexp>
-constraint string
cli semver constraint pattern; used only if non empty valid constraint specified
-format string
cli printf format for printing a module entry; \n is auto appended (default "%s %s %s")
-index string
cli go module index database url; golang.org index is used by default (default "https://index.golang.org/index")
-nocache
cli modules no caching flag; caching is enabled by default (default false)
-timeout int
cli timeout in seconds; only considered when value bigger than 0 (default 0)
-verbose
cli verbosity logging flag; verbosity is disabled by default (default false)
e.g.
gomer -constraint="<1.2" "gopium$"
github.com/1pkg/gopium v1.1.2 2020-06-18T19:45:44.710921Z
github.com/1pkg/gopium v1.1.1 2020-06-18T19:45:30.350059Z
github.com/1pkg/gopium v1.1.0 2020-06-17T20:51:55.723138Z
github.com/1pkg/gopium v1.0.1 2020-06-17T20:28:53.968057Z
github.com/1pkg/gopium v1.0.0 2020-06-13T13:44:46.041278Z
Gomer is licensed under the MIT License.
See LICENSE for the full license text.