Pragya Arya | 324337e | 2020-02-20 14:35:08 +0530 | [diff] [blame] | 1 | // Copyright 2017, The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
David K. Bainbridge | c415efe | 2021-08-19 13:05:21 +0000 | [diff] [blame^] | 3 | // license that can be found in the LICENSE file. |
Pragya Arya | 324337e | 2020-02-20 14:35:08 +0530 | [diff] [blame] | 4 | |
| 5 | // +build purego |
| 6 | |
| 7 | package cmp |
| 8 | |
| 9 | import "reflect" |
| 10 | |
| 11 | const supportExporters = false |
| 12 | |
David K. Bainbridge | c415efe | 2021-08-19 13:05:21 +0000 | [diff] [blame^] | 13 | func retrieveUnexportedField(reflect.Value, reflect.StructField, bool) reflect.Value { |
Pragya Arya | 324337e | 2020-02-20 14:35:08 +0530 | [diff] [blame] | 14 | panic("no support for forcibly accessing unexported fields") |
| 15 | } |