Skip to content

1pkg/gomer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomer

Gomer: cli tool for go module index search

lint build report version license

go get -u github.com/1pkg/gomer

Introduction

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.

Usage

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

Licence

Gomer is licensed under the MIT License.
See LICENSE for the full license text.