avelino/awesome-go
Awesome Go
We use the Golang Bridge community slack for instant communication, follow the form here to join.
Sponsorships:
Special thanks to
Awesome Go has no monthly fee*, but we have employees who work hard to keep it running, with money raised we can repay the effort of each person involved! You can see how we calculate our billing and distribution as it is open to the entire community. Want to be a supporter of the project click here.*
A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-pythonstars131.2k.
Contributing:
Please take a quick gander at the contribution guidelines first. Thanks to all contributors; you rock!
If you see a package or project here that is no longer maintained or is not a good fit, please submit a pull request to improve this file. Thank you!
Contents
- Awesome Go
- Contents
- Audio and Music
- Authentication and OAuth
- Blockchain
- Bot Building
- Build Automation
- Command Line
- Configuration
- Continuous Integration
- CSS Preprocessors
- Data Structures and Algorithms
- Database
- Database Drivers
- Date and Time
- Distributed Systems
- Dynamic DNS
- Embeddable Scripting Languages
- Error Handling
- File Handling
- Financial
- Forms
- Functional
- Game Development
- Generators
- Geographic
- Go Compilers
- Goroutines
- GUI
- Hardware
- Images
- IoT (Internet of Things)
- Job Scheduler
- JSON
- Logging
- Machine Learning
- Messaging
- Microsoft Office
- Miscellaneous
- Natural Language Processing
- Networking
- OpenGL
- ORM
- Package Management
- Performance
- Query Language
- Resource Embedding
- Science and Data Analysis
- Security
- Serialization
- Server Applications
- Stream Processing
- Template Engines
- Testing
- Text Processing
- Third-party APIs
- Utilities
- UUID
- Validation
- Version Control
- Video
- Web Frameworks
- WebAssembly
- Windows
- XML
- Zero Trust
- Code Analysis
- Editor Plugins
- Go Generate Tools
- Go Tools
- Software Packages
- Resources
Audio and Music
Libraries for manipulating audio.
- flacstars214 - Native Go FLAC encoder/decoder with support for FLAC streams.
- gaadstars101 - Native Go AAC bitstream parser.
- GoAudiostars231 - Native Go Audio Processing Library.
- gosampleratestars19 - libsamplerate bindings for go.
- id3v2stars246 - ID3 decoding and encoding library for Go.
- malgostars177 - Mini audio library.
- minimp3stars82 - Lightweight MP3 decoder library.
- music-theorystars399 - Music theory models in Go.
- Otostars1k - A low-level library to play sound on multiple platforms.
- PortAudiostars507 - Go bindings for the PortAudio audio I/O library.
Authentication and OAuth
Libraries for implementing authentications schemes.
- authbossstars3.1k - Modular authentication system for the web. It tries to remove as much boilerplate and "hard things" as possible so that each time you start a new web project in Go, you can plug it in, configure, and start building your app without having to build an authentication system each time.
- brancastars36 - branca token specification implementationstars185 for Golang 1.15+.
- casbinstars12.2k - Authorization library that supports access control models like ACL, RBAC, ABAC.
- cookiestxtstars13 - provides parser of cookies.txt file format.
- go-guardianstars375 - Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication that supports LDAP, Basic, Bearer token and Certificate based authentication.
- go-josestars1.9k - Fairly complete implementation of the JOSE working group's JSON Web Token, JSON Web Signatures, and JSON Web Encryption specs.
- gologinstars1.5k - chainable handlers for login with OAuth1 and OAuth2 authentication providers.
- gorbacstars1.3k - provides a lightweight role-based access control (RBAC) implementation in Golang.
- gothstars3.7k - provides a simple, clean, and idiomatic way to use OAuth and OAuth2. Handles multiple providers out of the box.
- jeffstars238 - Simple, flexible, secure and idiomatic web session management with pluggable backends.
- jwtstars285 - Lightweight JSON Web Token (JWT) library.
- jwtstars548 - Safe, simple and fast JSON Web Tokens for Go.
- jwt-authstars217 - JWT middleware for Golang http servers with many configuration options.
- loginsrvstars1.9k - JWT login microservice with plugable backends such as OAuth2 (Github), htpasswd, osiam.
- oauth2stars4.2k - Successor of goauth2. Generic OAuth 2.0 package that comes with JWT, Google APIs, Compute Engine and App Engine support.
- osinstars1.7k - Golang OAuth2 server library.
- otpgenstars120 - Library to generate TOTP/HOTP codes.
- otpgostars35 - Time-Based One-Time Password (TOTP) and HMAC-Based One-Time Password (HOTP) library for Go.
- pasetostars607 - Golang implementation of Platform-Agnostic Security Tokens (PASETO).
- permissions2stars457 - Library for keeping track of users, login states and permissions. Uses secure cookies and bcrypt.
- rbacstars98 - Minimalistic RBAC package for Go applications.
- scopestars21 - Easily Manage OAuth2 Scopes In Go.
- scsstars1.1k - Session Manager for HTTP servers.
- securecookiestars57 - Efficient secure cookie encoding/decoding.
- sessionstars107 - Go session management for web servers (including support for Google App Engine - GAE).
- sessionsstars65 - Dead simple, highly performant, highly customizable sessions service for go http servers.
- sessionupstars116 - Simple, yet effective HTTP session management and identification package.
- sjwtstars98 - Simple jwt generator and parser.
Blockchain
Tools for building blockchains.
- cosmos-sdkstars4.1k - A Framework for Building Public Blockchains in the Cosmos Ecosystem.
- go-ethereumstars38.1k - Official Go implementation of the Ethereum protocol.
- gossamerstars337 - A Go implementation of the Polkadot Host.
- solana-gostars321 - Go library to interface with Solana JSON RPC and WebSocket interfaces.
- tendermintstars5k - High-performance middleware for transforming a state machine written in any programming language into a Byzantine Fault Tolerant replicated state machine using the Tendermint consensus and blockchain protocols.
Bot Building
Libraries for building and working with bots.
- echotronstars146 - An elegant and concurrent library for Telegram Bots in Go.
- ephemeral-rolesstars63 - A Discord bot for managing ephemeral roles based upon voice channel member presence.
- go-chat-botstars744 - IRC, Slack & Telegram bot written in Go.
- go-joe - A general-purpose bot library inspired by Hubot but written in Go.
- go-sarahstars243 - Framework to build bot for desired chat services including LINE, Slack, Gitter and more.
- go-tgbotstars112 - Pure Golang Telegram Bot API wrapper, generated from swagger file, session-based router and middleware.
- go-twitch-ircstars236 - Library to write bots for twitch.tv chat
- Golang CryptoTrading Botstars789 - A golang implementation of a console-based trading bot for cryptocurrency exchanges.
- govkbotstars38 - Simple Go VK bot library.
- hanustars136 - Framework for writing Slack bots.
- Kelpstars897 - official trading and market-making bot for the Stellar DEX. Works out-of-the-box, written in Golang, compatible with centralized exchanges and custom trading strategies.
- larrystars67 - Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go.
- margeletstars72 - Framework for building Telegram bots.
- michastars18 - Go Library for Telegram bot api.
- oliviastars3.2k - A chatbot built with an artificial neural network.
- slack-botstars100 - Ready to use Slack Bot for lazy developers: Custom commands, Jenkins, Jira, Bitbucket, Github...
- slackerstars608 - Easy to use framework to create Slack bots.
- slackscotstars51 - Another framework for building Slack bots.
- tbotstars323 - Telegram bot server with API similar to net/http.
- telebotstars2.6k - Telegram bot framework written in Go.
- telegostars32 - Telegram Bot API library for Golang with full one-to-one API implementation.
- telegram-bot-apistars3.8k - Simple and clean Telegram bot client.
- teletermstars10 - Telegram Bot Exec Terminal Command.
- Tenyksstars171 - Service oriented IRC bot using Redis and JSON for messaging.
- waybackstars284 - A bot for Telegram, Mastodon, Slack, and other messaging platforms archives webpages.
Build Automation
Libraries and tools helping with build automation.
- 1buildstars167 - Command line tool to frictionlessly manage project-specific commands.
- ankostars25 - Simple application watcher for multiple programming languages.
- gaperstars55 - Builds and restarts a Go project when it crashes or some watched file changes.
- gilbert - Build system and task runner for Go projects.
- goyekstars294 - Create build pipelines in Go.
- magestars3k - Mage is a make/rake-like build tool using Go.
- mmakestars1.6k - Modern Make.
- realizestars4.2k - Go build system with file watchers and live reload. Run, build and watch file changes with custom paths.
- Taskstars5.4k - simple "Make" alternative.
- taskctlstars192 - Concurrent task runner.
Command Line
Advanced Console UIs
Libraries for building Console Applications and Console User Interfaces.
- asciigraphstars2k - Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
- aurorastars1.2k - ANSI terminal colors that supports fmt.Printf/Sprintf.
- box-cli-makerstars211 - Make Highly Customized Boxes for your CLI.
- cfmtstars84 - Contextual fmt inspired by bootstrap color classes.
- cfmtstars42 - Simple and convenient formatted stylized output fully compatible with fmt library.
- chalkstars396 - Intuitive package for prettifying terminal/console output.
- colourizestars25 - Go library for ANSI colour text in terminals.
- ctcstars37 - The non-invasive cross-platform terminal color library does not need to modify the Print method.
- go-atamanstars11 - Go library for rendering ANSI colored text templates in terminals.
- go-colorablestars620 - Colorable writer for windows.
- go-colortextstars210 - Go library for color output in terminals.
- go-isattystars622 - isatty for golang.
- go-promptstars4.5k - Library for building a powerful interactive prompt, inspired by python-prompt-toolkitstars7.8k.
- gocuistars8.3k - Minimalist Go library aimed at creating Console User Interfaces.
- gommon/color - Style terminal text.
- gookit/colorstars1.1k - Terminal color rendering tool library, support 16 colors, 256 colors, RGB color rendering output, compatible with Windows.
- markerstars27 - Easiest way to match and mark strings for colorful terminal outputs.
- mpbstars1.7k - Multi progress bar for terminal applications.
- progressbarstars2.5k - Basic thread-safe progress bar that works in every OS.
- ptermstars2.8k - A library to beautify console output on every platform with many combinable components.
- simpletablestars360 - Simple tables in terminal with Go.
- spinnerstars1.8k - Go package to easily provide a terminal spinner with options.
- tabbystars318 - A tiny library for super simple Golang tables.
- tablestars28 - Small library for terminal color based tables .
- tabularstars63 - Print ASCII tables from command line utilities without the need to pass large sets of data to the API.
- termbox-gostars4.3k - Termbox is a library for creating cross-platform text-based interfaces.
- termdashstars2k - Go terminal dashboard based on termbox-go and inspired by termuistars11.9k.
- termenvstars1.1k - Advanced ANSI style & color support for your terminal applications.
- termuistars11.9k - Go terminal dashboard based on termbox-go and inspired by blessed-contribstars14.8k.
- uilivestars1.5k - Library for updating terminal output in realtime.
- uiprogressstars1.9k - Flexible library to render progress bars in terminal applications.
- uitablestars650 - Library to improve readability in terminal apps using tabular data.
- yacspinstars345 - Yet Another CLi Spinner package, for working with terminal spinners.
Standard CLI
Libraries for building standard or basic Command Line applications.
- acmdstars47 - Simple, useful and opinionated CLI package in Go.
- argparsestars432 - Command line argument parser inspired by Python's argparse module.
- argvstars33 - Go library to split command line string as arguments array using the bash syntax.
- carapacestars39 - Command argument completion generator for spf13/cobra.
- carapace-binstars53 - Multi-shell multi-command argument completer.
- carapace-specstars2 - Define simple completions using a spec file.
- clistars655 - Feature-rich and easy to use command-line package based on golang struct tags.
- clistars108 - Simple and complete API for building command line interfaces in Go.
- climaxstars198 - Alternative CLI with "human face", in spirit of Go command.
- clîrstars114 - A Simple and Clear CLI library. Dependency free.
- cmdstars33 - Extends the standard
flag
package to support sub commands and more in idiomatic way. - cmdrstars107 - A POSIX/GNU style, getopt-like command-line UI Go library.
- cobrastars27.2k - Commander for modern Go CLI interactions.
- command-chainstars24 - A go library for configure and run command chains - such like pipelining in unix shells.
- commandeerstars157 - Dev-friendly CLI apps: sets up flags, defaults, and usage based on struct fields and tags.
- completestars835 - Write bash completions in Go + Go command bash completion.
- Dnotestars2.3k - A simple command line notebook with multi-device sync.
- elvishstars4.8k - An expressive programming language and a versatile interactive shell.
- envstars91 - Tag-based environment configuration for structs.
- flagstars120 - Simple but powerful command line option parsing library for Go supporting subcommand.
- flaggystars801 - A robust and idiomatic flags package with excellent subcommand support.
- flagvarstars39 - A collection of flag argument types for Go's standard
flag
package. - go-andotpstars15 - A CLI program to encrypt/decrypt andOTPstars3.6k files. Can be used as library as well.
- go-argstars1.4k - Struct-based argument parsing in Go.
- go-commanderstars29 - Go library to simplify CLI workflow.
- go-flagsstars2.2k - go command line option parser.
- go-getoptionsstars42 - Go option parser inspired on the flexibility of Perl’s GetOpt::Long.
- gocmdstars56 - Go library for building command line applications.
- hiboot cli - cli application framework with auto configuration and dependency injection.
- jobstars115 - JOB, make your short-term command as a long-term job.
- kingpinstars3.2k - Command line and flag parser supporting sub commands (superseded by
kong
; see below). - linerstars900 - Go readline-like library for command-line interfaces.
- mitchellh/clistars1.5k - Go library for implementing command-line interfaces.
- mow.clistars803 - Go library for building CLI applications with sophisticated flag and argument parsing and validation.
- opsstars984 - Unikernel Builder/Orchestrator.
- pflagstars1.8k - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
- sandstars18 - Simple API for creating interpreters and so much more.
- sflagsstars138 - Struct based flags generator for flag, urfave/cli, pflag, cobra, kingpin and other libraries.
- strumtstars46 - Library to create prompt chain.
- subcmdstars2 - Another approach to parsing and running subcommands. Works alongside the standard
flag
package. - tsstars13 - Timestamp convert & compare tool.
- ukautz/clifstars113 - Small command line interface framework.
- urfave/clistars18.6k - Simple, fast, and fun package for building command line apps in Go (formerly codegangsta/cli).
- wlogstars57 - Simple logging interface that supports cross-platform color and concurrency.
- wmenustars163 - Easy to use menu structure for cli applications that prompts users to make choices.
Configuration
Libraries for configuration parsing.
- aconfigstars375 - Simple, useful and opinionated config loader.
- cleanenvstars626 - Minimalistic configuration reader (from files, ENV, and wherever you want).
- configstars312 - Cloud native application configuration. Bind ENV to structs in only two lines.
- configstars20 - configure you app using file, environment variables, or flags in two lines of code
- configstars250 - JSON or YAML configuration wrapper with environment variables and flags parsing.
- configurationstars63 - Library for initializing configuration structs from env variables, files, flags and 'default' tag.
- configurestars56 - Provides configuration through multiple sources, including JSON, flags and environment variables.
- configurostars81 - opinionated configuration loading & validation framework from ENV and Files focused towards 12-Factor compliant applications.
- confitastars443 - Load configuration in cascade from multiple backends into a struct.
- conflatestars25 - Library/tool to merge multiple JSON/YAML/TOML files from arbitrary URLs, validation against a JSON schema, and application of default values defined in the schema.
- envstars2.5k - Parse environment variables to Go structs (with defaults).
- envstars22 - A lightweight package for loading environment variables into structs.
- envcfgstars98 - Un-marshaling environment variables to Go structs.
- envconfstars10 - Configuration from environment.
- envconfigstars222 - Read your configuration from environment variables.
- envhstars95 - Helpers to manage environment variables.
- figstars214 - Tiny library for reading configuration from a file and from environment variables (with validation & defaults).
- gcfgstars161 - read INI-style configuration files into Go structs; supports user-defined types and subsections.
- genvstars28 - Read environment variables easily with dotenv support.
- go-aws-ssmstars50 - Go package that fetches parameters from AWS System Manager - Parameter Store.
- go-confstars4 - Simple library for application configuration based on annotated structs. It supports reading the configuration from environment variables, config files and command line parameters.
- go-inistars8 - A Go package that marshals and unmarshals INI-files.
- go-ssm-configstars14 - Go utility for loading configuration parameters from AWS SSM (Parameter Store).
- go-upstars37 - A simple configuration library with recursive placeholders resolution and no magic.
- goConfigstars0 - Parses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
- godotenvstars5k - Go port of Ruby's dotenv library (Loads environment variables from
.env
). - gofigurestars64 - Go application configuration made easy.
- GoLobby/Configstars284 - GoLobby Config is a lightweight yet powerful configuration manager for the Go programming language.
- gone/jconf - Modular JSON configuration. Keep you config structs along with the code they configure and delegate parsing to submodules without sacrificing full config serialization.
- gonfigstars3 - Tag-based configuration parser which loads values from different providers into typesafe struct.
- gookit/configstars363 - application config manage(load,get,set). support JSON, YAML, TOML, INI, HCL. multi file load, data override merge.
- harvesterstars108 - Harvester, a easy to use static and dynamic configuration package supportig seeding, env vars and Consul integration.
- hjsonstars266 - Human JSON, a configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.
- hoconstars44 - Configuration library for working with the HOCON(a human-friendly JSON superset) format, supports features like environment variables, referencing other values, comments and multiple files.
- ingostars36 - Flags persisted in an ini-like config file.
- inistars3k - Go package to read and write INI files.
- inistars9 - INI Parser & Write Library, Unmarshal to Struct,Marshal to Json,Write File,watch file.
- joshbetz/configstars210 - Small configuration library for Go that parses environment variables, JSON files, and reloads automatically on SIGHUP.
- kelseyhightower/envconfigstars4.1k - Go library for managing configuration data from environment variables.
- koanfstars1k - Light weight, extensible library for reading config in Go applications. Built in support for JSON, TOML, YAML, env, command line.
- konfig - Composable, observable and performant config handling for Go for the distributed processing era.
- kongstars984 - Command-line parser with support for arbitrarily complex command-line structures and additional sources of configuration such as YAML, JSON, TOML, etc (succesor to
kingpin
). - ministars30 - Golang package for parsing ini-style configuration files.
- nasermirzaei89/envstars8 - Simple useful package for read environment variables.
- nfigurestars1 - Per-library struct-tag based configuration from command lines (Posix & Go-style); environment, JSON, YAML
- onionstars104 - Layer based configuration for Go, Supports JSON, TOML, YAML, properties, etcd, env, and encryption using PGP.
- piperstars4 - Viper wrapper with config inheritance and key generation.
- storestars260 - Lightweight configuration manager for Go.
- swapstars6 - Instantiate/configure structs recursively, based on build environment. (YAML, TOML, JSON and env).
- typenvstars7 - Minimalistic, zero dependency, typed environment variables library.
- uConfigstars49 - Lightweight, zero-dependency, and extendable configuration management.
- viperstars19.6k - Go configuration with fangs.
- xdgstars227 - Go implementation of the XDG Base Directory Specification and XDG user directories.
- xdgstars68 - Cross platform package that follows the XDG Standard.
Continuous Integration
Tools for help with continuous integration.
- CDSstars3.9k - Enterprise-Grade CI/CD and DevOps Automation Open Source Platform.
- dronestars25.2k - Drone is a Continuous Integration platform built on Docker, written in Go.
- ducistars73 - A simple ci server no needs domain specific languages.
- gomasonstars53 - Test, Build, Sign, and Publish your go binaries from a clean workspace.
- gotestfmtstars214 - go test output for humans.
- goverallsstars726 - Go integration for Coveralls.io continuous code coverage tracking system.
- overallsstars109 - Multi-Package go project coverprofile for tools like goveralls.
- roverallsstars16 - Recursive coverage testing tool.
CSS Preprocessors
Libraries for preprocessing CSS files.
- gcssstars453 - Pure Go CSS Preprocessor.
- go-libsassstars188 - Go wrapper to the 100% Sass compatible libsass project.
Data Structures and Algorithms
Bit-packing and Compression
- bingostars7 - Fast, zero-allocation, lexicographical-order-preserving packing of native types to bytes.
- binpackerstars187 - Binary packer and unpacker helps user build custom binary stream.
- bitstars120 - Golang set data structure with bonus bit-twiddling functions.
- crunchstars59 - Go package implementing buffers for handling various datatypes easily.
- go-efstars20 - A Go implementation of the Elias-Fano encoding.
- roaringstars1.7k - Go package implementing compressed bitsets.
Bit Sets
- bitmapstars148 - Dense, zero-allocation, SIMD-enabled bitmap/bitset in Go.
- bitsetstars895 - Go package implementing bitsets.
Bloom and Cuckoo Filters
- bloomstars1.6k - Go package implementing Bloom filters.
- bloomstars146 - Bloom filters implemented in Go.
- bloomstars72 - Golang Bloom filter implementation.
- bloomfilterstars9 - Yet another Bloomfilter implementation in Go, compatible with Java's Guava library.
- boomfiltersstars1.5k - Probabilistic data structures for processing continuous, unbounded streams.
- cuckoo-filterstars218 - Cuckoo filter: a comprehensive cuckoo filter, which is configurable and space optimized compared with other implements, and all features mentioned in original paper is available.
- cuckoofilterstars912 - Cuckoo filter: a good alternative to a counting bloom filter implemented in Go.
- ringstars126 - Go implementation of a high performance, thread safe bloom filter.
Data Structure and Algorithm Collections
- algorithmsstars645 - Algorithms and data structures.CLRS study.
- go-datastructuresstars6.5k - Collection of useful, performant, and thread-safe data structures.
- godsstars11.7k - Go Data Structures. Containers, Sets, Lists, Stacks, Maps, BidiMaps, Trees, HashSet etc.
- gostlstars667 - Data structure and algorithm library for go, designed to provide functions similar to C++ STL.
Iterators
- goteratorstars8 - Iterator implementation to provide map and reduce functionalities.
- iterstars157 - Go implementation of C++ STL iterators and algorithms.
Maps
See also Database for more complex key-value stores, and Trees for additional ordered map implementations.