Categorygithub.com/vearne/mem-align
modulepackage
0.0.0-20211210060219-77c37a66875c
Repository: https://github.com/vearne/mem-align.git
Documentation: pkg.go.dev

# README

Memory Alignment

Memory-Alignment is a tool to help analyze layout of fields in struct in memory.

Usage

go get github.com/vearne/mem-aligin

Example

package main

import (
	"github.com/vearne/mem-align"
)

type Car struct {
	flag bool
	age  int32
	F1   int8
	F2   int64
	F3   []byte
	Name string
	F4   error
}

func main(){
	memalign.PrintStructAlignment(Car{})
}

Output

output

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author