{"repo":"Zxilly/go-size-analyzer","free":true,"listed":false,"github":"https://github.com/Zxilly/go-size-analyzer","clone":"git clone https://github.com/Zxilly/go-size-analyzer.git","description":"A tool for analyzing the size of compiled Go binaries, offering cross-platform support, detailed breakdowns, and multiple output formats.","language":"Go","stars":2165,"topics":["binary","golang","symbol","visualization","analyzer","dependency","terminal-ui","treemap","go","react"],"license":"AGPL-3.0","category":"cli-tools","readme_excerpt":"go-size-analyzer English 简体中文 A simple tool to analyze the size of a Go compiled binary. - [x] Cross-platform support for analyzing ELF , Mach-O , PE and WebAssembly (experimental) binary formats - [x] Detailed size breakdown by packages and sections - [x] Support multiple output formats: text , json , html , svg - [x] Interactive exploration via web interface and terminal UI - [x] Binary comparison with diff mode (supports json and text output) Installation Download the latest binary MacOS / Linux via Homebrew Using Homebrew Windows Using scoop Go Install [!NOTE] The project relies on the encoding/json/v2 package, which requires Go 1.25+ with GOEXPERIMENT=jsonv2 enabled when building from source. Usage Example Web mode Will start a web server on port 8080, you can view the result in your browser. Or you can use the WebAssembly version in the browser: GSA Treemap [!NOTE] Due to the limitation of the browser, the WebAssembly version is much slower than the native version. Normally costs 10x time to analyze the same binary. Only recommended for analysing small applications (less than 30 MB in size) The web page will look like this: You can click to expand the package to see the details. Terminal UI Text mode Diff Mode Svg Mode Full options [!CAUTION] The tool can work with stripped binaries, but it may lead to inaccurate results. TODO - [ ] Add more pattern for disassembling the binary - [x] Extract the information from the DWARF section - [x] Count the symbol size itself to pa","default_branch":null,"files":null,"tree":[],"storefront":"/r/Zxilly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Zxilly/go-size-analyzer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}