7a4eda156c
This also removes `godep` calls from make scripts. Of note is that currently `./...` checking in acceptance tests is disabled.
25 lines
329 B
Go
25 lines
329 B
Go
package govalidator
|
|
|
|
type Errors []error
|
|
|
|
func (es Errors) Errors() []error {
|
|
return es
|
|
}
|
|
|
|
func (es Errors) Error() string {
|
|
var err string
|
|
for _, e := range es {
|
|
err += e.Error() + ";"
|
|
}
|
|
return err
|
|
}
|
|
|
|
type Error struct {
|
|
Name string
|
|
Err error
|
|
}
|
|
|
|
func (e Error) Error() string {
|
|
return e.Name + ": " + e.Err.Error()
|
|
}
|