Back to godoc.org
github.com/danwakefield/fnmatch

package fnmatch

v0.0.0 (cbb64ac)
Latest Go to latest
Published: Apr 3, 2016 | License: BSD-2-Clause | Module: github.com/danwakefield/fnmatch

Overview

Provide string-matching based on fnmatch.3

Index

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

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier