Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MatchAny = func() StringPredicateFn { return func(s string) bool { return true } } MatchNone = func() StringPredicateFn { return func(s string) bool { return false } } MatchRe = func(re *regexp.Regexp) StringPredicateFn { return func(s string) bool { return re.MatchString(s) } } )
View Source
var (
FileOpener = os.Open
)
Functions ¶
func FailingReader ¶ added in v1.0.66
func FailingWriter ¶ added in v1.0.66
func NewYamlEncoder ¶ added in v1.0.66
NewYamlEncoder creates and uniformly configures yaml.Encoder across project
Types ¶
type EmptyChecker ¶ added in v1.0.65
type EmptyChecker interface {
// IsEmpty returns true if this instance is "empty".
IsEmpty() bool
}
EmptyChecker interface can be used to check is implementing struct is "empty".
type StringPredicateFn ¶ added in v1.0.59
Click to show internal directories.
Click to hide internal directories.