golang-sizeof

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

Golang sizeof tips

Moved from gophergala/golang-sizeof.tips

Moved from tyranron/golang-sizeof.tips

Golang sizeof tips ClosedOpen. Long Live Golang sizeof tips!

Consider alternatives:

Web tool for interactive playing with Golang struct sizes.

Changes

At the 21 May 2020 I (Oleg Butuzov) changed this software in next way:

  • process demonization removed.
  • made it locally installable via go get -u github.com/butuzov/golang-sizeof
  • address are hardcoded (localhost:7777) and browser (supppose to be opened) when server starts.
  • windows support?

That all of the changes I made to original tool.

Aim

Provide comfortable tool to see how fields in struct are aligned, to compare different structs and as the result - to understand and remember alignment rules.

Installing

go get -u github.com/butuzov/golang-sizeof
golang-sizeof

Platform support

Tested on Linux and OS X x64 platforms, but should work properly and on other *nix-like platforms. Should work on windows too, but i didn't test it, so can't confirm it.

License

Apache License 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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