Golang sizeof tips

Web tool for interactive playing with Golang struct sizes.

The story behind...

When we write code, sometimes we need to know exact size of some type or just to understand why some structs have sizes not as expected. Inspired with Golang Playground I was aimed to create almost from everywhere available simple app that can provide us with detailed explanation of struct sizes.

Try it



No more counting alignments and paddings in mind, just concentrate on your work, illustrative description can be reached in couple of clicks. Also, a useful playground for language beginners, where their can check their hypotheses and see if they're wrong and why.

Features? Nope, just standart tools.

Web application is totally stateless, so it can be run almost everywhere with minimal requirements. Under the hood is used Go parser provided by Golang std library. I tried to minimize external dependencies as far as application is so simple to be enough with std library.

Try it out