Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidValue ¶ added in v0.12.0
type InvalidValue struct {
// Type is the type or format the Value supposed to be.
Type string
// Partial When set to true, means the Value contains a invalid part,
// and that part is meant to be a Type value.
Partial bool
// Value is the actual bad value.
Value string
}
func (*InvalidValue) Error ¶ added in v0.12.0
func (v *InvalidValue) Error() string
Error implements error.
- When v.Partial is true: "$v.Value contains invalid $v.Type value"
- When v.Partial is false: "$v.Value is not a valid %v.Type value"
Click to show internal directories.
Click to hide internal directories.