Cookie Consent by Free Privacy Policy Generator 📌 Go: how fat are your dependencies? Use go-size-analyzer!


✅ Go: how fat are your dependencies? Use go-size-analyzer!


💡 Newskategorie: Programmierung
🔗 Quelle: dev.to

Most project comes with dependencies.

Go is quite interesting as the compiler only ships the needed code.

Think about node, it's definitely not the same and the its node_modules folder…

Let's go back to Go, so the compiler "imports" only what is needed.

But we were facing a lack of tooling easy to understand to estimate the consequences of dependencies.

Until recently, and this wonderful project and tool:

GitHub logo Zxilly / go-size-analyzer

A tool for analysing the size of dependencies in compiled Golang binaries, providing insight into their impact on the final build.

go-size-analyzer

English | 简体中文

Go Report Card GitHub release codebeat badge codecov

A simple tool to analyze the size of a Go compiled binary.

Installation

Download the latest release from the release page

Use go install is not recommended, because it won't include the embed ui template, which is required for the web mode.

Usage

Example

Web mode

$ gsa --web golang-compiled-binary

Will start a web server on port 8080, you can view the result in your browser.

The web page will look like this:

image

You can click to expand the package to see the details.

Text mode

$ gsa docker-compose-linux-x86_64
+------------------------------------------------------------------------------+
| docker-compose-linux-x86_64                                                  |
+---------+-----------------------------------------------+--------+-----------+
| PERCENT | NAME                                          | SIZE   | TYPE      |
+---------+-----------------------------------------------+--------+-----------+
| 27.76%  | .gopclntab                                    | 17 MB  | section   |
| 15.17%  | .rodata                                       | 9.5 MB | section   |
| 11.63%  | k8s.io/api                                    | 7.3 MB | vendor    |
| 6.69%   | .strtab                                       | 4.2 MB | section   |
| 3.47%   

A tool for analysing the size of dependencies in compiled Golang binaries, providing insight into their impact on the final build.

Kudos @zxilly (I'm unsure you are active on Dev.to), but thanks

...

✅ [PATCH resend] fat: Improve the readahead for FAT entries


📈 38.15 Punkte

✅ Arrow Functions in JavaScript: How to Use Fat & Concise Syntax


📈 23.31 Punkte

✅ The story of MS13-002: How incorrectly casting fat pointers can make your code explode


📈 22.21 Punkte

✅ Pushing Left, Like a Boss — Part 5.2- Use Safe Dependencies


📈 20.8 Punkte

✅ How do you manage all dependencies in your linux machine?


📈 19.7 Punkte

✅ On Shaky Ground: Why Dependencies Will Be Your Downfall


📈 19.7 Punkte

✅ Testing your inputs and dependencies like a boss


📈 19.7 Punkte

✅ Safety - Check Your Installed Dependencies For Known Security Vulnerabilities


📈 19.7 Punkte

✅ Dependencies: It's not just your code you need to secure.


📈 19.7 Punkte

✅ You Can Now Package Your Apps as Snaps without Bundling Their Dependencies


📈 19.7 Punkte

✅ You Can Now Package Your Apps as Snaps without Bundling Their Dependencies


📈 19.7 Punkte

✅ USB-Festplatten: FAT-Treiber für Linux könnte deutlich schneller werden


📈 19.07 Punkte

✅ Viel Glück: Axl Rose will "Fat Meme"-Foto aus dem Netz entfernen


📈 19.07 Punkte

✅ BEA WebLogic 7.0 FAT Client Certificate Authentication weak authentication


📈 19.07 Punkte

✅ Oli Pocher gegen Fat Comedy: Das URTEIL im Backpfeifen-Skandal | Anwalt Christian Solmecke


📈 19.07 Punkte

✅ Boffins promise protection and perfect performance with new ZeRØ, No-FAT memory safety techniques


📈 19.07 Punkte

✅ Bill Gates’s YouTube ‘Bitcoin giveaway’ is a big fat scam


📈 19.07 Punkte

✅ dosfstools bis 3.x FAT12 Filesystem Handler fat.c set_fat Denial of Service


📈 19.07 Punkte

✅ Das Urteil im Ohrfeigen-Skandal: Pocher gegen Fat Comedy 😲​ ​ | WBS.LEGAL #shorts


📈 19.07 Punkte

✅ Files.com Fat Client 3.3.6 improper authentication [CVE-2021-3183]


📈 19.07 Punkte

✅ OneDrive: Keine Synchronisierung mit FAT-Dateisystem


📈 19.07 Punkte

✅ Bill Gates’s YouTube ‘Bitcoin giveaway’ is a big fat scam


📈 19.07 Punkte

✅ Low CVE-2019-10226: Fatfreecrm Fat free crm


📈 19.07 Punkte

✅ Fat Patch Tuesday, February 2024 Edition


📈 19.07 Punkte

✅ S3 Ep7: When ransomware crooks get a big fat zero! [Podcast]


📈 19.07 Punkte

✅ Chinese Scientists Create Genetically Modified Low-Fat Pigs


📈 19.07 Punkte

✅ Medium CVE-2020-5203: Fatfreeframework Fat-free framework


📈 19.07 Punkte

✅ Fat Free CRM 0.19.0 HTML Injection


📈 19.07 Punkte

✅ 4 Ways to Quantify Fat Tails with Python


📈 19.07 Punkte

✅ Fat-Shaming: Instagram ändert Richtlinien für Nacktfotos


📈 19.07 Punkte











matomo

Datei nicht gefunden!