func (e *Errors) Len() int {
	return len(*e)
}
Len returns the number of errors.
package binding
import (
	"encoding/json"
	"fmt"
	"strings"
)
type (
	Errors []Error
	Error interface {
		error
		Fields() []string
		Kind() string
		Message() string
	}
	fieldsError struct {
		fields []string
		kind string
		message string
	}
)
func (e *Errors) Add(fieldNames []string, kind, message string) {
	*e = append(*e, NewError(fieldNames, kind, message))
}