aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/imdario/mergo/mergo.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-17 14:59:17 +0000
committerGitHub <noreply@github.com>2022-06-17 14:59:17 +0000
commit04de0dabce9acd071ecc693ddfd076c15a7c17da (patch)
treefd2f609b84f910b532b0db20a1e4e7d3fa924398 /vendor/github.com/imdario/mergo/mergo.go
parentc936d1e61154b6826e9d8df46e9660aba6c86cfe (diff)
parent8090445762f4a8c3c26da7b30eaa0670c04ca3f4 (diff)
downloadpodman-04de0dabce9acd071ecc693ddfd076c15a7c17da.tar.gz
podman-04de0dabce9acd071ecc693ddfd076c15a7c17da.tar.bz2
podman-04de0dabce9acd071ecc693ddfd076c15a7c17da.zip
Merge pull request #14599 from rhatdan/VENDOR
Vendor in latest containers/image
Diffstat (limited to 'vendor/github.com/imdario/mergo/mergo.go')
-rw-r--r--vendor/github.com/imdario/mergo/mergo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/imdario/mergo/mergo.go b/vendor/github.com/imdario/mergo/mergo.go
index 3cc926c7f..9fe362d47 100644
--- a/vendor/github.com/imdario/mergo/mergo.go
+++ b/vendor/github.com/imdario/mergo/mergo.go
@@ -17,7 +17,7 @@ import (
var (
ErrNilArguments = errors.New("src and dst must not be nil")
ErrDifferentArgumentsTypes = errors.New("src and dst must be of same type")
- ErrNotSupported = errors.New("only structs and maps are supported")
+ ErrNotSupported = errors.New("only structs, maps, and slices are supported")
ErrExpectedMapAsDestination = errors.New("dst was expected to be a map")
ErrExpectedStructAsDestination = errors.New("dst was expected to be a struct")
ErrNonPointerAgument = errors.New("dst must be a pointer")
@@ -65,7 +65,7 @@ func resolveValues(dst, src interface{}) (vDst, vSrc reflect.Value, err error) {
return
}
vDst = reflect.ValueOf(dst).Elem()
- if vDst.Kind() != reflect.Struct && vDst.Kind() != reflect.Map {
+ if vDst.Kind() != reflect.Struct && vDst.Kind() != reflect.Map && vDst.Kind() != reflect.Slice {
err = ErrNotSupported
return
}