1 // Copyright 2020 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 file.
5 // Package unsafeheader contains header declarations for the Go runtime's
6 // slice and string implementations.
8 // This package allows x/sys to use types equivalent to
9 // reflect.SliceHeader and reflect.StringHeader without introducing
10 // a dependency on the (relatively heavy) "reflect" package.
17 // Slice is the runtime representation of a slice.
18 // It cannot be used safely or portably and its representation may change in a later release.
25 // String is the runtime representation of a string.
26 // It cannot be used safely or portably and its representation may change in a later release.