Go Memory Layout Visualizer

VS Code extension that shows Go struct padding and reorders fields

Image 1 of 1: Go struct with 14 bytes of padding beside its byte map, at 65% packed

Annotates each field with its byte offset and the padding the compiler adds, scores how tightly a struct packs, and rewrites the field order in one click. It covers amd64, arm64 and 386, and flags cache-line issues across a workspace.

Trade-offs

  • Its own parser and layout calculator, in the editor. Annotations appear as a file opens, while a gopls or unsafe.Sizeof cross-check is still on the list.

Q&A2

Field order changes when a reorder would shrink the struct, and comments and tags are kept.

Reviews

Loading reviews

    More in Performance

    See all 47 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • EntrolyLocal context layer that picks what coding agents send to the model
    • BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages

    More in VS Code

    See all 7 →
    • gitpaneMulti-repo Git dashboard for the terminal and the VS Code Explorer
    • Localization Resource ManagerLocalization files from one binary, as a CLI, terminal UI, web UI or in VS Code
    • KiiraType-checks the TypeScript code fences in Markdown against the real project
    • SQL CrackVS Code extension that draws SQL query flow, dependencies and column lineage
    • ERD StudioLogical data modelling canvas in VS Code, stored as DBML in the repo
    • CodeVisualizerVS Code extension that draws function flowcharts and codebase dependency graphs