/glob

Golang glob

Primary LanguageGoMIT LicenseMIT

Build Status Badge Go Docs Badge

Glob

  • glob for Golang, add **/* support.

Usage

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"))
}