https://github.com/viert/sekwence
https://github.com/viert/sekwence
bash golang golang-library permutation sequence
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/viert/sekwence
- Owner: viert
- License: mit
- Created: 2018-11-01T09:25:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T11:11:11.000Z (about 7 years ago)
- Last Synced: 2025-01-14T07:53:50.845Z (about 1 year ago)
- Topics: bash, golang, golang-library, permutation, sequence
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Go sekwence library
Sekwence is a library for parsing bash-like patterns `{00..12}`, `{1,3,5,7}` and generate corresponding string sequences.
##### Example
```
sekwence.ExpandPattern("host{00..03}{a,c,f}.example.com")
> host00a.example.com
> host00c.example.com
> host00f.example.com
> host01a.example.com
> host01c.example.com
> host01f.example.com
> host02a.example.com
> host02c.example.com
> host02f.example.com
> host03a.example.com
> host03c.example.com
> host03f.example.com
```