Documentation ¶
Index ¶
- func CreateImageVector() (imagevector.ImageVector, error)
- func MustBeGreaterThan[E constraints.Ordered](key string, lowerBound, value E) error
- func MustBeGreaterThanOrEqualTo[E constraints.Ordered](key string, lowerBound, value E) error
- func ShouldBeOneOfAllowedValues[E comparable](key string, allowedValues []E, value E) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateImageVector ¶
func CreateImageVector() (imagevector.ImageVector, error)
CreateImageVector creates an image vector from the default images.yaml file or the images-wrapper.yaml file.
func MustBeGreaterThan ¶
func MustBeGreaterThan[E constraints.Ordered](key string, lowerBound, value E) error
MustBeGreaterThan checks if the value is greater than the lowerBound. If it is not then an error is returned else nil is returned. Type is constrained by constraints.Ordered which enforces the consumers to use concrete types that can be compared using >, >=, <, <= operators.
func MustBeGreaterThanOrEqualTo ¶
func MustBeGreaterThanOrEqualTo[E constraints.Ordered](key string, lowerBound, value E) error
MustBeGreaterThanOrEqualTo checks if the value is greater than or equal to the lowerBound. If it is not then an error is returned else nil is returned. Type is constrained by constraints.Ordered which enforces the consumers to use concrete types that can be compared using >, >=, <, <= operators.
func ShouldBeOneOfAllowedValues ¶
func ShouldBeOneOfAllowedValues[E comparable](key string, allowedValues []E, value E) error
ShouldBeOneOfAllowedValues checks if value is amongst the allowedValues. If it is not then an error is returned else nil is returned. Type is constrained by comparable forcing the consumers to only use concrete types that can be compared using the == or != operators.
Types ¶
This section is empty.