aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-cmp/cmp/export_panic.go
diff options
context:
space:
mode:
authorrenovate <renovate-bot@autistici.org>2021-06-19 17:25:55 +0000
committerrenovate <renovate-bot@autistici.org>2021-06-19 17:25:55 +0000
commita4ceb326c4eb592ab989f1202584ea2cfded574f (patch)
tree48e8e6fb60fe11d3ea96eb2a789b0698c69b14c8 /vendor/github.com/google/go-cmp/cmp/export_panic.go
parentd82bb811816d6155e3891089a020438859c75c5a (diff)
downloadcrawl-a4ceb326c4eb592ab989f1202584ea2cfded574f.tar.gz
crawl-a4ceb326c4eb592ab989f1202584ea2cfded574f.zip
Update module github.com/google/go-cmp to v0.5.6
Diffstat (limited to 'vendor/github.com/google/go-cmp/cmp/export_panic.go')
-rw-r--r--vendor/github.com/google/go-cmp/cmp/export_panic.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/google/go-cmp/cmp/export_panic.go b/vendor/github.com/google/go-cmp/cmp/export_panic.go
index abc3a1c..5ff0b42 100644
--- a/vendor/github.com/google/go-cmp/cmp/export_panic.go
+++ b/vendor/github.com/google/go-cmp/cmp/export_panic.go
@@ -1,6 +1,6 @@
// Copyright 2017, The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE.md file.
+// license that can be found in the LICENSE file.
// +build purego
@@ -8,8 +8,8 @@ package cmp
import "reflect"
-const supportAllowUnexported = false
+const supportExporters = false
-func retrieveUnexportedField(reflect.Value, reflect.StructField) reflect.Value {
- panic("retrieveUnexportedField is not implemented")
+func retrieveUnexportedField(reflect.Value, reflect.StructField, bool) reflect.Value {
+ panic("no support for forcibly accessing unexported fields")
}