▶️ Golang
Installation on Ubuntu
sudo add-apt-repository ppa:longsleep/golang-backports;
sudo apt update;
sudo apt install golang-go;System Checks
Environment Checking
go envDevelopment
Installing Dependencies
go mod vendor -v;Updating Dependencies
go mod tidy -v;Running Commands
Running All Tests
Running All Tests in a Directory
Running All Tests with Coverage
Building
The following formulae expects that an invoker runs these from the root directory given a project layout as specificied at https://github.com/golang-standards/project-layout.
Basic Build
Static Build
Symbols Stripped Build
Cross-Platform Build
Variable Injection Build
The following assumes the presence of the variables commitHash, version, and buildTimestamp in the main package:
Windows-GUI Build
Last updated
Was this helpful?