gotools/gopls/internal/test/integration/fake/glob/glob.go

type Glob

// Parse builds a Glob for the given pattern, returning an error if the pattern
// is invalid.
func Parse(pattern string) (*Glob, error) {}

func parse(pattern string, nested bool) (*Glob, string, error) {}

// helper for decoding a rune in range elements, e.g. [a-z]
func readRangeRune(input string) (rune, int, error) {}

var errBadRange

var errInvalidUTF8

func (g *Glob) parseLiteral(pattern string, nested bool) string {}

func (g *Glob) String() string {}

type element

type slash

type literal

type star

type anyChar

type starStar

type group

type charRange

func (s slash) String() string    {}

func (l literal) String() string  {}

func (s star) String() string     {}

func (a anyChar) String() string  {}

func (s starStar) String() string {}

func (g group) String() string {}

func (r charRange) String() string {}

// Match reports whether the input string matches the glob pattern.
func (g *Glob) Match(input string) bool {}

func match(elems []element, input string) (ok bool) {}

// split returns the portion before and after the first slash
// (or sequence of consecutive slashes). If there is no slash
// it returns (input, nil).
func split(input string) (first, rest string) {}