1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# minimal
Worse versions of packages that already exist.
## minimal/color
Just the consts.
## minimal/flag [](https://godoc.org/github.com/iriri/minimal/flag)
Package flag provides a very minimal command line flag parser. Both short flags
(-s) and long flags (--long) are supported. Short flags can be chained (-xvzf)
and "--" is treated as the end of flags marker. Boolean and integer values have
first-class support; strings values are intended to serve as a catch-all for
anything else.
## minimal/gitignore [](https://godoc.org/github.com/iriri/minimal/gitignore)
Package gitignore can be used to parse .gitignore-style files into globs that
can be used to test against a certain string or selectively walk a file tree.
Gobwas's glob package is used for matching because it is faster than using
regexp, which is overkill, and supports globstars (**), unlike filepath.Match.
## minimal/replaceright [](https://godoc.org/github.com/iriri/minimal/replaceright)
Package replaceright provides similar functionality to some of the standard
library string replacement routines except they start from the right. Uses
Boyer-Moore on longer strings.
|