fnmatch: github.com/danwakefield/fnmatch Index | Files

package fnmatch

import "github.com/danwakefield/fnmatch"

Provide string-matching based on fnmatch.3

Index

Package Files

fnmatch.go

Constants

const (
    FNM_NOESCAPE = (1 << iota)
    FNM_PATHNAME
    FNM_PERIOD

    FNM_LEADING_DIR
    FNM_CASEFOLD

    FNM_IGNORECASE = FNM_CASEFOLD
    FNM_FILE_NAME  = FNM_PATHNAME
)

func Match Uses

func Match(pattern, s string, flags int) bool

Matches the pattern against the string, with the given flags, and returns true if the match is successful. This function should match fnmatch.3 as closely as possible.

Package fnmatch imports 2 packages (graph) and is imported by 12 packages. Updated 2016-10-25. Refresh now. Tools for package owners.