Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidChars CharFilter = func(current, previous string) bool { return vailCharRegexp.MatchString(current) } In = func(chars ...string) CharFilter { return func(current, previous string) bool { for _, char := range chars { if char == current { return true } } return false } } Not = func(cf CharFilter) CharFilter { return func(current, previous string) bool { return !cf(current, previous) } } )
Functions ¶
Types ¶
type CharFilter ¶
func (CharFilter) And ¶
func (self CharFilter) And(cf ...CharFilter) CharFilter
func (CharFilter) Or ¶
func (self CharFilter) Or(cf ...CharFilter) CharFilter
type Configuration ¶
type Configuration = Directive
func MustParse ¶
func MustParse(filename string) *Configuration
func MustParseWith ¶
func MustParseWith(filename string, bs []byte) *Configuration
func Parse ¶
func Parse(filename string) (cfg *Configuration, err error)
type Directive ¶
type Directive struct { Line int `json:"line"` Virtual Virtual `json:"virtual,omitempty"` Name string `json:"name"` Args []string `json:"args,omitempty"` Body Directives `json:"body,omitempty"` }
func NewDirective ¶
func (*Directive) AddBodyDirective ¶
type DirectiveIterator ¶
type DirectiveIterator struct {
// contains filtered or unexported fields
}
func (*DirectiveIterator) HasNext ¶
func (ds *DirectiveIterator) HasNext() bool
func (*DirectiveIterator) Next ¶
func (ds *DirectiveIterator) Next() *Directive
func (*DirectiveIterator) Remove ¶
func (ds *DirectiveIterator) Remove()
type Directives ¶
type Directives []*Directive
func (*Directives) Get ¶
func (ds *Directives) Get(name string) *Directive
func (*Directives) Iterator ¶
func (ds *Directives) Iterator() *DirectiveIterator
func (*Directives) Remove ¶
func (ds *Directives) Remove(name string) *Directive
Click to show internal directories.
Click to hide internal directories.