Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractSpecification ¶
type AbstractSpecification struct {
Specification
}
AbstractSpecification implements Specification interface
func (*AbstractSpecification) And ¶
func (c *AbstractSpecification) And(other Specification) Specification
And returns a specification composition with AND operator
func (*AbstractSpecification) Not ¶
func (c *AbstractSpecification) Not() Specification
Not returns a specification composition with NOT operator
func (*AbstractSpecification) Or ¶
func (c *AbstractSpecification) Or(other Specification) Specification
Or returns a specification composition with OR operator
type Specification ¶
type Specification interface {
IsSatisfiedBy(object interface{}) bool
}
Specification contract
Click to show internal directories.
Click to hide internal directories.