Movatterモバイル変換


[0]ホーム

URL:


structs

packagestandard library
go1.25.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:0Imported by:123

Details

Repository

cs.opensource.google/go/go

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp