func (m *validator) GetErrors() Errors {
	return m.errors
}
GetErrors returns record errors
package borm
import (
	"fmt"
	"regexp"
	"unicode/utf8"
)
type Errors map[string][]string
type validator struct {
	errors Errors
}
func (m *validator) ResetErrors() {
	m.errors = make(Errors)
}
func (m *validator) AddError(f string, t string) {
	if m.Valid() {
		m.errors = make(Errors)
	}
	m.errors[f] = append(m.errors[f], t)
}
func (m *validator) Valid() bool {
	return len(m.errors) == 0
}