Skip to content

snail007/go-glob-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-glob

Build Status

Another Glob Library for Golang

Installation

go get github.com/mgenware/go-glob

API

GoDoc

Example

package main

import "github.com/mgenware/go-glob"

func main() {
	glob.IsFullMatch("abc", "a*")      // true
	glob.IsFullMatch("abc", "a?c")     // true
	glob.IsFullMatch("azzzzb", "a**b") // true
	glob.IsFullMatch("c?", "acd")      // false

	glob.IsPartialMatch("abc", "bc")     // true
	glob.IsPartialMatch("azzzzzb", "b*") // true
}

About

Another Glob Library for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%