Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyName arises when pattern name is an empty string ErrEmptyName = errors.New("an empty name") // ErrEmptyExpression arises when expression is an empty string ErrEmptyExpression = errors.New("an empty expression") // ErrAlreadyExist arises when pattern with given name alrady exists ErrAlreadyExist = errors.New("the pattern already exist") // ErrNotExist arises when pattern with given name doesn't exists ErrNotExist = errors.New("pattern doesn't exist") )
Functions ¶
This section is empty.
Types ¶
type Host ¶
Host is a patterns collection. Host does not need to be kept around after all need patterns are generated
func NewBase ¶
func NewBase() Host
NewBase creates new Host that filled up with base patterns. To see all base patterns open 'base.go' file.
func (Host) Add ¶
Add a new pattern to the Host. If a pattern name already exists the ErrAlreadyExists will be returned.
func (Host) AddFromReader ¶
AddFromReader appends all patterns from the reader to this Host.
Click to show internal directories.
Click to hide internal directories.