Update vendor

This commit is contained in:
Ettore Di Giacinto
2021-05-18 15:54:18 +02:00
parent 1ef18ed2c5
commit c72b5be364
6 changed files with 627 additions and 0 deletions

22
vendor/github.com/mitchellh/hashstructure/v2/errors.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package hashstructure
import (
"fmt"
)
// ErrNotStringer is returned when there's an error with hash:"string"
type ErrNotStringer struct {
Field string
}
// Error implements error for ErrNotStringer
func (ens *ErrNotStringer) Error() string {
return fmt.Sprintf("hashstructure: %s has hash:\"string\" set, but does not implement fmt.Stringer", ens.Field)
}
// ErrFormat is returned when an invalid format is given to the Hash function.
type ErrFormat struct{}
func (*ErrFormat) Error() string {
return "format must be one of the defined Format values in the hashstructure library"
}