https://github.com/haoxins/glob
Golang glob
https://github.com/haoxins/glob
glob go golang
Last synced: 9 days ago
JSON representation
Golang glob
- Host: GitHub
- URL: https://github.com/haoxins/glob
- Owner: haoxins
- License: mit
- Created: 2015-02-02T16:27:20.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T02:38:22.000Z (over 1 year ago)
- Last Synced: 2025-06-11T10:15:07.170Z (4 months ago)
- Topics: glob, go, golang
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status Badge]][Build Status]
[![Go Docs Badge]][Go Docs]## Glob
- __glob__ for Golang, add `**/*` support.
### Usage
```go
import "github.com/haoxins/glob"func main() {
matches, err = glob.Glob(".", "**/*.yaml")
Expect(err).To(BeNil())
Expect(len(matches)).To(Equal(1))
Expect(matches[0]).To(Equal(".github/workflows/test.yaml"))
}
```[Build Status Badge]: https://github.com/haoxins/glob/actions/workflows/test.yaml/badge.svg
[Build Status]: https://github.com/haoxins/glob/actions/workflows/test.yaml
[Go Docs Badge]: https://pkg.go.dev/badge/github.com/haoxins/glob
[Go Docs]: https://pkg.go.dev/github.com/haoxins/glob