Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelValidationError ¶
type ModelValidationError struct {
// contains filtered or unexported fields
}
ModelValidationError represents an error resulting from a field having a value that doesn't satisfy a prescribed constraint.
func (ModelValidationError) Error ¶
func (e ModelValidationError) Error() string
type Modeler ¶
type Modeler struct {
// contains filtered or unexported fields
}
Modeler is a utility for populating an arbitrary model's fields with values from a map[string]string.
type NilLiteralModelError ¶
type NilLiteralModelError struct { }
NilLiteralModelError represents a failed attempt to populate a "model" because a nil literal was passed to the modeler instead of a struct pointer.
func (NilLiteralModelError) Error ¶
func (e NilLiteralModelError) Error() string
type NilModelError ¶
type NilModelError struct {
// contains filtered or unexported fields
}
NilModelError represents a failed attempt to populate a "model" because a nil pointer was passed to the modeler instead of a struct pointer.
func (NilModelError) Error ¶
func (e NilModelError) Error() string
type NonPointerModelError ¶
type NonPointerModelError struct {
// contains filtered or unexported fields
}
NonPointerModelError represents a failed attempt to populate a model because something other than a pointer was passed to the modeler.
func (NonPointerModelError) Error ¶
func (e NonPointerModelError) Error() string
type NonStructPointerModelError ¶
type NonStructPointerModelError struct {
// contains filtered or unexported fields
}
NonStructPointerModelError represents a failed attempt to populate a model because something other than a pointer was passed to the modeler.
func (NonStructPointerModelError) Error ¶
func (e NonStructPointerModelError) Error() string