An open API service indexing awesome lists of open source software.

https://github.com/haoxins/glob

Golang glob
https://github.com/haoxins/glob

glob go golang

Last synced: 9 days ago
JSON representation

Golang glob

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