Matteo Scandolo | abf872d | 2020-12-14 08:22:06 -1000 | [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 | 0663189 | 2021-08-19 13:07:00 +0000 | [diff] [blame^] | 3 | // license that can be found in the LICENSE file. |
Matteo Scandolo | abf872d | 2020-12-14 08:22:06 -1000 | [diff] [blame] | 4 | |
| 5 | // +build purego |
| 6 | |
| 7 | package cmp |
| 8 | |
| 9 | import "reflect" |
| 10 | |
| 11 | const supportExporters = false |
| 12 | |
David K. Bainbridge | 0663189 | 2021-08-19 13:07:00 +0000 | [diff] [blame^] | 13 | func retrieveUnexportedField(reflect.Value, reflect.StructField, bool) reflect.Value { |
Matteo Scandolo | abf872d | 2020-12-14 08:22:06 -1000 | [diff] [blame] | 14 | panic("no support for forcibly accessing unexported fields") |
| 15 | } |