Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 NonExistantFieldFormatter ¶
type NonExistantFieldFormatter struct { ParentLabel string Fields []string MaxElements int FieldsAreProperties bool }
A formatter for when a field or property is used that does not exist.
func (NonExistantFieldFormatter) Message ¶
func (e NonExistantFieldFormatter) Message(field, fieldLabel string) string
Get a single line message.
func (NonExistantFieldFormatter) MessageWithDetail ¶
func (e NonExistantFieldFormatter) 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.