github.com/MawKKe/integer-interval-expressions-go (go): Package integerintervalexpressions is a library for parsing integer interval expressions of the form '1,3-5,7-'  Expressions of this kind are commonly seen in user-facing application contexts such as page selectors in print dialogs, field selector in the CLI `cut` tool, and so on. This library provides support for parsing and utilizing such expressions in wide variety of application contexts.  Internally, the library parses an input string into an abstract logical expression, which can be then evaluated with integer values to determine whether those values lie in any of the specified intervals. The parsed expressions do not contain any actual integer sequences, which allows for small memory usage and support for infinite ranges
Keywords: filter|go|golang|intervals|library|parser|parsing|range-expansion|range-expression|ranges|selector|validator