Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Xuanwo/globiter
Turn glob range and set into Iterator
https://github.com/Xuanwo/globiter
glob rust
Last synced: 7 days ago
JSON representation
Turn glob range and set into Iterator
- Host: GitHub
- URL: https://github.com/Xuanwo/globiter
- Owner: Xuanwo
- License: apache-2.0
- Created: 2022-06-12T02:23:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T05:33:46.000Z (6 months ago)
- Last Synced: 2024-11-01T03:06:14.738Z (13 days ago)
- Topics: glob, rust
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# globiter [![Build Status]][actions] [![Latest Version]][crates.io]
[Build Status]: https://img.shields.io/github/workflow/status/Xuanwo/globiter/CI/main
[actions]: https://github.com/Xuanwo/globiter/actions?query=branch%3Amain
[Latest Version]: https://img.shields.io/crates/v/globiter.svg
[crates.io]: https://crates.io/crates/globiter`globiter` turns glob range and set into Iterator.
## Quick Start
```rust
let pattern = Pattern::parse("https://example.com/{a,b,c}/file/[001-003]")?;
for i in pattern.iter() {
println("{i}")
}
// Output:
// https://example.com/a/file/001
// https://example.com/a/file/002
// https://example.com/a/file/003
// https://example.com/b/file/001
// ...
// https://example.com/c/file/003
```## Contributing
Check out the [CONTRIBUTING.md](./CONTRIBUTING.md) guide for more details on getting started with contributing to this project.
## Getting help
Submit [issues](https://github.com/Xuanwo/globiter/issues/new/choose) for bug report or asking questions in [discussion](https://github.com/Xuanwo/globiter/discussions/new?category=q-a).
#### License
Licensed under Apache License, Version 2.0.