Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Specification ¶
func NewAndSpecification ¶
func NewAndSpecification[T any](specs ...Specification[T]) Specification[T]
NewAndSpecification holds a slice of specifications and run each of them for Create and Validate methods. Fails if *any* specification failed.
func OrSpecification ¶
func OrSpecification[T any](specs ...Specification[T]) Specification[T]
OrSpecification holds a slice of specifications and run each of them for Validate methods. Fails if *all* specifications failed.
func OrSpecificationWithCreate ¶ added in v1.1.0
func OrSpecificationWithCreate[T any](specs ...Specification[T]) Specification[T]
OrSpecificationWithCreate holds a slice of specifications and run each of them for Validate and Create methods. Fails if *all* specifications failed.
Click to show internal directories.
Click to hide internal directories.