Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyranron/golang-sizeof.tips
[CLOSED] Web tool for interactive playing with Golang struct sizes.
https://github.com/tyranron/golang-sizeof.tips
Last synced: 11 days ago
JSON representation
[CLOSED] Web tool for interactive playing with Golang struct sizes.
- Host: GitHub
- URL: https://github.com/tyranron/golang-sizeof.tips
- Owner: tyranron
- License: other
- Archived: true
- Created: 2015-01-23T14:57:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T17:13:48.000Z (over 4 years ago)
- Last Synced: 2024-02-21T02:31:06.988Z (4 months ago)
- Language: Go
- Homepage: http://golang-sizeof.tips/
- Size: 84 KB
- Stars: 51
- Watchers: 3
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- go-awesome - Golang sizeof tips - 输入结构体定义,会显示内存布局 (资源站点 / 未归类)
- go-awesome - Golang sizeof tips - Enter the structure definition and the storage layout will appear (Resource Page / Not Categorized)
README
Golang sizeof tips
==================_Moved from [gophergala/golang-sizeof.tips](https://github.com/gophergala/golang-sizeof.tips)_
**THE PROJECT IS CLOSED. THANKS ANYONE WHO USED IT!**
**Consider alternatives:**
- https://github.com/dominikh/go-tools/tree/master/cmd/structlayoutWeb tool for interactive playing with Golang struct sizes.
Try online version ~~[here](http://golang-sizeof.tips/).~~
## 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
To install correct versions of dependencies
[Goop dependency manager](https://github.com/nitrous-io/goop) should be used.
```bash
go get github.com/gophergala/golang-sizeof.tips
cd github.com/gophergala/golang-sizeof.tips
goop install
goop go build -o ./server
```
You may also install via simple `go get` by your own risk.## Usage
```bash
./server -http=:7777 start
./server stop
./server restart
```## Platform support
Tested on Linux and OS X x64 platforms, but should work properly and on other
*nix-like platforms.
Windows is not supported due to daemonization.## License
[Apache License 2.0](LICENSE)