Frequent magics every developer may need. This package contains general-purpose technical utilities. Full documentation and examples are available in pkg.go.dev.
Option, MutableOption, and ImmutableOption update a value one field at a time.
ApplyOptions applies them in order. See ExampleApplyOptions_basic.
Matcher answers whether a value meets a criterion. MatchAnd, MatchOr, MatchXor,
MatchNot, MatchEqual, MatchGreaterThan, and MatchLesserThan combine those answers.
Sequence helpers such as SliceFilter take a matcher.
SliceMap, SliceFilter, SliceReduce, SliceFlat, and SliceDistinct are the slice forms.
The same names without the Slice prefix walk an iter.Seq. OrganicSliceMap and
OrganicSliceFilter do the same work without allocating an iterator.
MiddlewareStack.Push chains handlers. The first middleware pushed runs first.
github.com/janstoon/toolbox/tricks/mathx adds integer gcd, lcm, primes, Euler's totient,
and primitive roots.