File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ pkg reflect, type SliceHeader //deprecated #56906
2
+ pkg reflect, type StringHeader //deprecated #56906
Original file line number Diff line number Diff line change @@ -2743,7 +2743,7 @@ func (v Value) UnsafePointer() unsafe.Pointer {
2743
2743
// it references will not be garbage collected, so programs must keep
2744
2744
// a separate, correctly typed pointer to the underlying data.
2745
2745
//
2746
- // In new code, use unsafe.String or unsafe.StringData instead.
2746
+ // Deprecated: Use unsafe.String or unsafe.StringData instead.
2747
2747
type StringHeader struct {
2748
2748
Data uintptr
2749
2749
Len int
@@ -2756,7 +2756,7 @@ type StringHeader struct {
2756
2756
// it references will not be garbage collected, so programs must keep
2757
2757
// a separate, correctly typed pointer to the underlying data.
2758
2758
//
2759
- // In new code, use unsafe.Slice or unsafe.SliceData instead.
2759
+ // Deprecated: Use unsafe.Slice or unsafe.SliceData instead.
2760
2760
type SliceHeader struct {
2761
2761
Data uintptr
2762
2762
Len int
You can’t perform that action at this time.
0 commit comments