structs
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 structs defines marker types that can be used as struct fieldsto modify the properties of a struct.
By convention, a marker type should be used as the type of a fieldnamed "_", placed at the beginning of a struct type definition.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeHostLayout¶
type HostLayout struct {// contains filtered or unexported fields}HostLayout marks a struct as using host memory layout. A struct with afield of type HostLayout will be laid out in memory according to hostexpectations, generally following the host's C ABI.
HostLayout does not affect layout within any other struct-typed fieldsof the containing struct, nor does it affect layout of structscontaining the struct marked as host layout.
By convention, HostLayout should be used as the type of a fieldnamed "_", placed at the beginning of the struct type definition.