structs

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

structsパッケージは、構造体のフィールドとして使用できるマーカー型を定義し、 構造体のプロパティを変更するために利用します。

慣例として、マーカー型は「_」という名前のフィールド型として、 構造体定義の先頭に配置して使用します。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostLayout

type HostLayout struct {
	// contains filtered or unexported fields
}

HostLayoutは構造体がホストのメモリレイアウトを使用することを示します。 HostLayout型のフィールドを持つ構造体は、メモリ上でホストの期待に従って、一般的にホストのC ABIに従ってレイアウトされます。

HostLayoutは、含まれる構造体の他の構造体型フィールド内のレイアウトや、HostLayoutでマークされた構造体を含む構造体のレイアウトには影響しません。

慣例として、HostLayoutは「_」という名前のフィールド型として、構造体定義の先頭に配置して使用します。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL