Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayType ¶ added in v0.5.5
Types ¶
type AndList ¶
type AndList []string
A list that displays in the human readable format: "a, b and c".
type BagOrdering ¶
type InvalidFieldBagFormatter ¶
type InvalidFieldBagFormatter struct { ParentLabel string Bags []TypeBag // The maximum number of fields to return. `MaxListed` <= 0 implies return all fields. MaxListed int // The degree of (edit) distance between the field typed and suggested. DistanceLimit int }
A formatter for missing fields that may be valid in other places.
func (InvalidFieldBagFormatter) BagList ¶
func (e InvalidFieldBagFormatter) BagList(field string) []BagOrdering
func (InvalidFieldBagFormatter) ExactMatching ¶
func (e InvalidFieldBagFormatter) ExactMatching(field string) []string
The list of bags that exactly match `field`.
func (InvalidFieldBagFormatter) MessageWithDetail ¶
func (e InvalidFieldBagFormatter) MessageWithDetail(field string) (string, string)
type NonExistentFieldFormatter ¶ added in v1.4.0
type NonExistentFieldFormatter struct { ParentLabel string Fields []string MaxElements int FieldsAreProperties bool }
A formatter for when a field or property is used that does not exist.
func (NonExistentFieldFormatter) Message ¶ added in v1.4.0
func (e NonExistentFieldFormatter) Message(field, fieldLabel string) string
Get a single line message.
func (NonExistentFieldFormatter) MessageWithDetail ¶ added in v1.4.0
func (e NonExistentFieldFormatter) MessageWithDetail(field, fieldLabel string) (string, string)
A message broken up into a top level and detail line
Click to show internal directories.
Click to hide internal directories.