package
0.0.0-20241028182034-32f8c4f5d23a
Repository: https://github.com/tayron/golang-estudos.git
Documentation: pkg.go.dev
# README
Go build exemples
Removing debug information included in the executable
Use the command:go build -ldflags "-w" main.go
To reduce even more using -s flag (strip)
Use the command:go build -ldflags "-s -w" main.go
Compressing binary using UPX
Install
Use the command: apt-get install upx
Using
Use the command: upx main
Output
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2017
UPX 3.94 Markus Oberhumer, Laszlo Molnar & John Reiser May 12th 2017
File size Ratio Format Name
-------------------- ------ ----------- -----------
2990944 -> 1157704 38.71% linux/amd64 main
Packed 1 file.