Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOptions ¶
ApplyOptions applies a list of options to a value
Types ¶
type Option ¶
Option is a function that configures a value T
func WithDefault ¶
WithDefault sets a default value if the option returns an error
type RequiredFields ¶
type RequiredFields interface {
ValidateRequiredFields() error
}
RequiredFields is an interface that ensures a type can validate its required fields
Click to show internal directories.
Click to hide internal directories.