Skip to content

Golang

Libraries

Frameworks

  • expr - Expression language and expression evaluation for Go

CLI

  • cobra - A Commander for modern Go CLI interactions
  • color - Color package for Go
  • huh - Build terminal forms and prompts 🤷🏻‍♀️
  • progressbar - A really basic thread-safe progress bar for Golang applications
  • viper - Go configuration with fangs

Backend

  • gofiber - ⚡️ Express inspired web framework written in Go
  • requests - HTTP requests for Gophers
  • watermill - Building event-driven applications the easy way in Go

Systems

Testing

  • dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

Utilities

  • go-querystring - go-querystring is Go library for encoding structs into URL query strings
  • godotenv - A Go port of Ruby's dotenv library (Loads environment variables from .env files)
  • sops
  • zerolog - Zero Allocation JSON Logger

Cookbook

Reduce binary size

bash
go build -ldflags="-s -w" <your-package>

Receive multiple returns from goroutine

https://stackoverflow.com/a/17825968

Resources