glob

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 1 Imported by: 1

README

go-glob

simple glob expression matcher

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern string, s string) bool

Match will attempt to match supplied string against supplied glob pattern.

Types

type GlobExpr

type GlobExpr struct {
	// contains filtered or unexported fields
}

GlobExpr represents a compiled glob expression.

func Compile

func Compile(pattern string) *GlobExpr

Compile will compile supplied glob pattern into a GlobExpr.

func (*GlobExpr) Match

func (expr *GlobExpr) Match(s string) bool

Match will attempt to match supplied string against receiving glob expression.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL