export_panic.go 411 B

12345678910111213141516
  1. // Copyright 2017, The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build purego
  5. // +build purego
  6. package cmp
  7. import "reflect"
  8. const supportExporters = false
  9. func retrieveUnexportedField(reflect.Value, reflect.StructField, bool) reflect.Value {
  10. panic("no support for forcibly accessing unexported fields")
  11. }