unsafeheader
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package unsafeheader contains header declarations for the Go runtime's sliceand string implementations.
This package allows packages that cannot import "reflect" to use types thatare tested to be equivalent to reflect.SliceHeader and reflect.StringHeader.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeSlice¶
Slice is the runtime representation of a slice.It cannot be used safely or portably and its representation maychange in a later release.
Unlike reflect.SliceHeader, its Data field is sufficient to guarantee thedata it references will not be garbage collected.