diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/reflect/value.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go index d68f7ad2e6..0fc19ef101 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -2660,6 +2660,9 @@ func (v Value) UnsafePointer() unsafe.Pointer { // Moreover, the Data field is not sufficient to guarantee the data // it references will not be garbage collected, so programs must keep // a separate, correctly typed pointer to the underlying data. +// +// Deprecated: this type should not be used, it exists only for +// backward compatibility. type StringHeader struct { Data uintptr Len int @@ -2671,6 +2674,9 @@ type StringHeader struct { // Moreover, the Data field is not sufficient to guarantee the data // it references will not be garbage collected, so programs must keep // a separate, correctly typed pointer to the underlying data. +// +// Deprecated: this type should not be used, it exists only for +// backward compatibility. type SliceHeader struct { Data uintptr Len int |
