layout

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package layout computes the memory layout of named structs in a Target, returning the per-field offset/size/align/padding as data (no rendering).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspector

type Inspector struct{}

Inspector implements common.Inspector.

func New

func New() *Inspector

New returns an Inspector.

func (*Inspector) Layouts

func (i *Inspector) Layouts(t common.Target, patterns []string) []common.Layout

Layouts returns the layout of each named struct in t matching patterns (nil = all). Generic types (no concrete layout until instantiated) are skipped.

Jump to

Keyboard shortcuts

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