Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validatable ¶
Validatable is an interface representing objects that can be validated.
type ValidationMessage ¶
type ValidationMessage string
ValidationMessage is a string type alias that represents validation a validation message.
func Validate ¶
func Validate(obj Validatable) ([]ValidationMessage, error)
Validate will validate a Validatable object and return a slice of validation messages as well as an error if any is encountered.
func (ValidationMessage) String ¶
func (v ValidationMessage) String() string
Click to show internal directories.
Click to hide internal directories.