export_panic.go 390 B

123456789101112131415
  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.md file.
  4. // +build purego
  5. package cmp
  6. import "reflect"
  7. const supportExporters = false
  8. func retrieveUnexportedField(reflect.Value, reflect.StructField) reflect.Value {
  9. panic("no support for forcibly accessing unexported fields")
  10. }