Documentation ¶
Overview ¶
Package glob implements globbing for elvish.
Index ¶
- Constants
- func Glob(p string, cb func(string) bool) bool
- func IsLiteral(seg Segment) bool
- func IsSlash(seg Segment) bool
- func IsWild(seg Segment) bool
- func IsWild1(seg Segment, t WildType) bool
- func IsWild2(seg Segment, t1, t2 WildType) bool
- type Literal
- type Pattern
- type Segment
- type Slash
- type Wild
- type WildType
Constants ¶
View Source
const ( Question = iota Star StarStar )
Values for WildType.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Literal ¶
type Literal struct {
Data string
}
Literal is a series of non-slash, non-wildcard characters, that is to be matched literally.
type Segment ¶
type Segment interface {
// contains filtered or unexported methods
}
Segment is the building block of Pattern.
Click to show internal directories.
Click to hide internal directories.