Skip to content


Repository files navigation

Awesome Go


Build Status Awesome Slack Widget Netlify Status Track Awesome List

We use the Golang Bridge community Slack for instant communication, follow the form here to join.

awesome-go - Curated list awesome Go frameworks, libraries and software | Product Hunt


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-python.


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!


⬆ back to top

Artificial Intelligence

Libraries for building programs that leverage AI.

  • langchaingo - LangChainGo is a framework for developing applications powered by language models.
  • LocalAI - Open Source OpenAI alternative, self-host AI models.
  • Ollama - Run large language models locally.

⬆ back to top

Audio and Music

Libraries for manipulating audio.

  • flac - Native Go FLAC encoder/decoder with support for FLAC streams.
  • gaad - Native Go AAC bitstream parser.
  • GoAudio - Native Go Audio Processing Library.
  • gosamplerate - libsamplerate bindings for go.
  • id3v2 - ID3 decoding and encoding library for Go.
  • malgo - Mini audio library.
  • minimp3 - Lightweight MP3 decoder library.
  • Oto - A low-level library to play sound on multiple platforms.
  • PortAudio - Go bindings for the PortAudio audio I/O library.

⬆ back to top

Authentication and OAuth

Libraries for implementing authentication schemes.

  • authboss - 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 it, and start building your app without having to build an authentication system each time.
  • branca - branca token specification implementation for Golang 1.15+.
  • casbin - Authorization library that supports access control models like ACL, RBAC, and ABAC.
  • cookiestxt - provides a parser of cookies.txt file format.
  • go-guardian - 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-jose - Fairly complete implementation of the JOSE working group's JSON Web Token, JSON Web Signatures, and JSON Web Encryption specs.
  • gologin - chainable handlers for login with OAuth1 and OAuth2 authentication providers.
  • gorbac - provides a lightweight role-based access control (RBAC) implementation in Golang.
  • gosession - This is quick session for net/http in GoLang. This package is perhaps the best implementation of the session mechanism, or at least it tries to become one.
  • goth - provides a simple, clean, and idiomatic way to use OAuth and OAuth2. Handles multiple providers out of the box.
  • jeff - Simple, flexible, secure, and idiomatic web session management with pluggable backends.
  • jwt - Lightweight JSON Web Token (JWT) library.
  • jwt - Safe, simple, and fast JSON Web Tokens for Go.
  • jwt-auth - JWT middleware for Golang http servers with many configuration options.
  • jwt-go - A full featured implementation of JSON Web Tokens (JWT). This library supports the parsing and verification as well as the generation and signing of JWTs.
  • keto - Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.
  • loginsrv - JWT login microservice with pluggable backends such as OAuth2 (Github), htpasswd, osiam.
  • oauth2 - Successor of goauth2. Generic OAuth 2.0 package that comes with JWT, Google APIs, Compute Engine, and App Engine support.
  • oidc - Easy to use OpenID Connect client and server library written for Go and certified by the OpenID Foundation
  • openfga - Implementation of fine-grained authorization based on the "Zanzibar: Google's Consistent, Global Authorization System" paper. Backed by CNCF.
  • osin - Golang OAuth2 server library.
  • otpgen - Library to generate TOTP/HOTP codes.
  • otpgo - Time-Based One-Time Password (TOTP) and HMAC-Based One-Time Password (HOTP) library for Go.
  • paseto - Golang implementation of Platform-Agnostic Security Tokens (PASETO).
  • permissions2 - Library for keeping track of users, login states, and permissions. Uses secure cookies and bcrypt.
  • scope - Easily Manage OAuth2 Scopes In Go.
  • scs - Session Manager for HTTP servers.
  • securecookie - Efficient secure cookie encoding/decoding.
  • session - Go session management for web servers (including support for Google App Engine - GAE).
  • sessions - Dead simple, highly performant, highly customizable sessions service for go http servers.
  • sessionup - Simple, yet effective HTTP session management and identification package.
  • sjwt - Simple jwt generator and parser.

⬆ back to top


Tools for building blockchains.

  • cometbft - A distributed, Byzantine fault-tolerant, deterministic state machine replication engine. It is a fork of Tendermint Core and implements the Tendermint consensus algorithm.
  • cosmos-sdk - A Framework for Building Public Blockchains in the Cosmos Ecosystem.
  • go-ethereum - Official Go implementation of the Ethereum protocol.
  • gosemble - A Go-based framework for building Polkadot/Substrate-compatible runtimes.
  • gossamer - A Go implementation of the Polkadot Host.
  • kubo - A blockchain framework implemented in Go. It provides content-addressable storage which can be used for decentralized storage in DApps. It is based on the IPFS protocol.
  • solana-go - Go library to interface with Solana JSON RPC and WebSocket interfaces.
  • tendermint - 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.

⬆ back to top

Bot Building

Libraries for building and working with bots.

  • bot - Zero-dependencies Telegram Bot library with additional UI components
  • echotron - An elegant and concurrent library for Telegram Bots in Go.
  • ephemeral-roles - A Discord bot for managing ephemeral roles based upon voice channel member presence.
  • go-chat-bot - IRC, Slack & Telegram bot written in Go.
  • go-joe - A general-purpose bot library inspired by Hubot but written in Go.
  • go-sarah - Framework to build a bot for desired chat services including LINE, Slack, Gitter, and more.
  • go-tg - Generated from official docs Go client library for accessing Telegram Bot API, with batteries for building complex bots included.
  • go-tgbot - Pure Golang Telegram Bot API wrapper, generated from swagger file, session-based router, and middleware.
  • go-twitch-irc - Library to write bots for chat
  • Golang CryptoTrading Bot - A golang implementation of a console-based trading bot for cryptocurrency exchanges.
  • govkbot - Simple Go VK bot library.
  • hanu - Framework for writing Slack bots.
  • Kelp - 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.
  • larry - Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go.
  • margelet - Framework for building Telegram bots.
  • micha - Go Library for Telegram bot api.
  • olivia - A chatbot built with an artificial neural network.
  • slack-bot - Ready to use Slack Bot for lazy developers: Custom commands, Jenkins, Jira, Bitbucket, Github...
  • slacker - Easy to use framework to create Slack bots.
  • slackscot - Another framework for building Slack bots.
  • tbot - Telegram bot server with API similar to net/http.
  • telebot - Telegram bot framework is written in Go.
  • telego - Telegram Bot API library for Golang with full one-to-one API implementation.
  • telegram-bot-api - Simple and clean Telegram bot client.
  • teleterm - Telegram Bot Exec Terminal Command.
  • Tenyks - Service oriented IRC bot using Redis and JSON for messaging.
  • wayback - A bot for Telegram, Mastodon, Slack, and other messaging platforms archives webpages.

⬆ back to top

Build Automation

Libraries and tools help with build automation.

  • 1build - Command line tool to frictionlessly manage project-specific commands.
  • anko - Simple application watcher for multiple programming languages.
  • gaper - Builds and restarts a Go project when it crashes or some watched file changes.
  • gilbert - Build system and task runner for Go projects.
  • gob - Gradle/Maven like build tool for Go projects.
  • goyek - Create build pipelines in Go.
  • mage - Mage is a make/rake-like build tool using Go.
  • mmake - Modern Make.
  • realize - Go build a system with file watchers and live to reload. Run, build and watch file changes with custom paths.
  • Task - simple "Make" alternative.
  • taskctl - Concurrent task runner.
  • xc - Task runner with defined tasks, executable markdown.

⬆ back to top

Command Line

Advanced Console UIs

Libraries for building Console Applications and Console User Interfaces.

  • asciigraph - Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
  • aurora - ANSI terminal colors that support fmt.Printf/Sprintf.
  • box-cli-maker - Make Highly Customized Boxes for your CLI.
  • bubble-table - An interactive table component for bubbletea.
  • bubbles - TUI components for bubbletea.
  • bubbletea - Go framework to build terminal apps, based on The Elm Architecture.
  • cfmt - Contextual fmt inspired by bootstrap color classes.
  • cfmt - Simple and convenient formatted stylized output fully compatible with fmt library.
  • chalk - Intuitive package for prettifying terminal/console output.
  • colourize - Go library for ANSI colour text in terminals.
  • crab-config-files-templating - Dynamic configuration file templating tool for kubernetes manifest or general configuration files.
  • ctc - The non-invasive cross-platform terminal color library does not need to modify the Print method.
  • go-ataman - Go library for rendering ANSI colored text templates in terminals.
  • go-colorable - Colorable writer for windows.
  • go-colortext - Go library for color output in terminals.
  • go-isatty - isatty for golang.
  • go-palette - Go library that provides elegant and convenient style definitions using ANSI colors. Fully compatible & wraps the fmt library for nice terminal layouts.
  • go-prompt - Library for building a powerful interactive prompt, inspired by python-prompt-toolkit.
  • gocui - Minimalist Go library aimed at creating Console User Interfaces.
  • gommon/color - Style terminal text.
  • gookit/color - Terminal color rendering tool library, support 16 colors, 256 colors, RGB color rendering output, compatible with Windows.
  • lipgloss - Declaratively define styles for color, format and layout in the terminal.
  • marker - Easiest way to match and mark strings for colorful terminal outputs.
  • mpb - Multi progress bar for terminal applications.
  • progressbar - Basic thread-safe progress bar that works in every OS.
  • pterm - A library to beautify console output on every platform with many combinable components.
  • simpletable - Simple tables in a terminal with Go.
  • spinner - Go package to easily provide a terminal spinner with options.
  • tabby - A tiny library for super simple Golang tables.
  • table - Small library for terminal color based tables .
  • tabular - Print ASCII tables from command line utilities without the need to pass large sets of data to the API.
  • termbox-go - Termbox is a library for creating cross-platform text-based interfaces.
  • termdash - Go terminal dashboard based on termbox-go and inspired by termui.
  • termenv - Advanced ANSI style & color support for your terminal applications.
  • termui - Go terminal dashboard based on termbox-go and inspired by blessed-contrib.
  • uilive - Library for updating terminal output in real time.
  • uiprogress - Flexible library to render progress bars in terminal applications.
  • uitable - Library to improve readability in terminal apps using tabular data.
  • yacspin - Yet Another CLi Spinner package, for working with terminal spinners.

⬆ back to top

Standard CLI

Libraries for building standard or basic Command Line applications.

  • acmd - Simple, useful, and opinionated CLI package in Go.
  • argparse - Command line argument parser inspired by Python's argparse module.
  • argv - Go library to split command line string as arguments array using the bash syntax.
  • carapace - Command argument completion generator for spf13/cobra.
  • carapace-bin - Multi-shell multi-command argument completer.
  • carapace-spec - Define simple completions using a spec file.
  • cli - Feature-rich and easy to use command-line package based on golang struct tags.
  • cli - Simple and complete API for building command line interfaces in Go.
  • climax - Alternative CLI with "human face", in spirit of Go command.
  • clîr - A Simple and Clear CLI library. Dependency free.
  • cmd - Extends the standard flag package to support sub commands and more in idiomatic way.
  • cmdr - A POSIX/GNU style, getopt-like command-line UI Go library.
  • cobra - Commander for modern Go CLI interactions.
  • command-chain - A go library for configure and run command chains - such as pipelining in unix shells.
  • commandeer - Dev-friendly CLI apps: sets up flags, defaults, and usage based on struct fields and tags.
  • complete - Write bash completions in Go + Go command bash completion.
  • Dnote - A simple command line notebook with multi-device sync.
  • elvish - An expressive programming language and a versatile interactive shell.
  • env - Tag-based environment configuration for structs.
  • flag - Simple but powerful command line option parsing library for Go supporting subcommand.
  • flaggy - A robust and idiomatic flags package with excellent subcommand support.
  • flagvar - A collection of flag argument types for Go's standard flag package.
  • go-andotp - A CLI program to encrypt/decrypt andOTP files. Can be used as a library as well.
  • go-arg - Struct-based argument parsing in Go.
  • go-commander - Go library to simplify CLI workflow.
  • go-flags - go command line option parser.
  • go-getoptions - Go option parser inspired by the flexibility of Perl’s GetOpt::Long.
  • gocmd - Go library for building command line applications.
  • hiboot cli - cli application framework with auto configuration and dependency injection.
  • job - JOB, make your short-term command as a long-term job.
  • kingpin - Command line and flag parser supporting sub commands (superseded by kong; see below).
  • liner - Go readline-like library for command-line interfaces.
  • mcli - A minimal but very powerful cli library for Go.
  • mitchellh/cli - Go library for implementing command-line interfaces.
  • mow.cli - Go library for building CLI applications with sophisticated flag and argument parsing and validation.
  • ops - Unikernel Builder/Orchestrator.
  • pflag - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
  • readline Shell library with modern and easy to use UI features.
  • sand - Simple API for creating interpreters and so much more.
  • sflags - Struct based flags generator for flag, urfave/cli, pflag, cobra, kingpin, and other libraries.
  • strumt - Library to create prompt chain.
  • subcmd - Another approach to parsing and running subcommands. Works alongside the standard flag package.
  • survey - Build interactive and accessible prompts with full support for windows and posix terminals.
  • ts - Timestamp convert & compare tool.
  • ukautz/clif - Small command line interface framework.
  • urfave/cli - Simple, fast, and fun package for building command line apps in Go (formerly codegangsta/cli).
  • version - Collects and displays CLI version information in multiple formats along with upgrade notice.
  • wlog - Simple logging interface that supports cross-platform color and concurrency.
  • wmenu - Easy to use menu structure for cli applications that prompt users to make choices.

⬆ back to top


Libraries for configuration parsing.

  • aconfig - Simple, useful and opinionated config loader.
  • cleanenv - Minimalistic configuration reader (from files, ENV, and wherever you want).
  • config - Cloud native application configuration. Bind ENV to structs in only two lines.
  • config - configure you app using file, environment variables, or flags in two lines of code
  • config - JSON or YAML configuration wrapper with environment variables and flags parsing.
  • configuration - Library for initializing configuration structs from env variables, files, flags and 'default' tag.
  • configure - Provides configuration through multiple sources, including JSON, flags and environment variables.
  • configuro - opinionated configuration loading & validation framework from ENV and Files focused towards 12-Factor compliant applications.
  • confita - Load configuration in cascade from multiple backends into a struct.
  • conflate - 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.
  • env - Parse environment variables to Go structs (with defaults).
  • env - A lightweight package for loading environment variables into structs.
  • envcfg - Un-marshaling environment variables to Go structs.
  • envconf - Configuration from environment.
  • envconfig - Read your configuration from environment variables.
  • envh - Helpers to manage environment variables.
  • fig - Tiny library for reading configuration from a file and from environment variables (with validation & defaults).
  • gcfg - read INI-style configuration files into Go structs; supports user-defined types and subsections.
  • genv - Read environment variables easily with dotenv support.
  • go-aws-ssm - Go package that fetches parameters from AWS System Manager - Parameter Store.
  • go-conf - Simple library for application configuration based on annotated structs. It supports reading the configuration from environment variables, config files and command line parameters.
  • go-ini - A Go package that marshals and unmarshals INI-files.
  • go-ssm-config - Go utility for loading configuration parameters from AWS SSM (Parameter Store).
  • go-up - A simple configuration library with recursive placeholders resolution and no magic.
  • goConfig - Parses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
  • godotenv - Go port of Ruby's dotenv library (Loads environment variables from .env).
  • gofigure - Go application configuration made easy.
  • GoLobby/Config - 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.
  • gonfig - Tag-based configuration parser which loads values from different providers into typesafe struct.
  • gookit/config - application config manage(load,get,set). support JSON, YAML, TOML, INI, HCL. multi file load, data override merge.
  • harvester - Harvester, a easy to use static and dynamic configuration package supporting seeding, env vars and Consul integration.
  • hjson - Human JSON, a configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.
  • hocon - 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.
  • ingo - Flags persisted in an ini-like config file.
  • ini - Go package to read and write INI files.
  • ini - INI Parser & Write Library, Unmarshal to Struct,Marshal to Json,Write File,watch file.
  • joshbetz/config - Small configuration library for Go that parses environment variables, JSON files, and reloads automatically on SIGHUP.
  • kelseyhightower/envconfig - Go library for managing configuration data from environment variables.
  • koanf - Light weight, extensible library for reading config in Go applications. Built in support for JSON, TOML, YAML, env, command line.
  • konf - The simplest API for reading/watching config from file, env, flag and clouds (e.g. AWS, Azure, GCP).
  • konfig - Composable, observable and performant config handling for Go for the distributed processing era.
  • kong - Command-line parser with support for arbitrarily complex command-line structures and additional sources of configuration such as YAML, JSON, TOML, etc (successor to kingpin).
  • mini - Golang package for parsing ini-style configuration files.
  • nasermirzaei89/env - Simple useful package for read environment variables.
  • nfigure - Per-library struct-tag based configuration from command lines (Posix & Go-style); environment, JSON, YAML
  • onion - Layer based configuration for Go, Supports JSON, TOML, YAML, properties, etcd, env, and encryption using PGP.
  • piper - Viper wrapper with config inheritance and key generation.
  • store - Lightweight configuration manager for Go.
  • swap - Instantiate/configure structs recursively, based on build environment. (YAML, TOML, JSON and env).
  • typenv - Minimalistic, zero dependency, typed environment variables library.
  • uConfig - Lightweight, zero-dependency, and extendable configuration management.
  • viper - Go configuration with fangs.
  • xdg - Go implementation of the XDG Base Directory Specification and XDG user directories.
  • xdg - Cross platform package that follows the XDG Standard.

⬆ back to top

Continuous Integration

Tools for help with continuous integration.

  • Bencher - A suite of continuous benchmarking tools designed to catch performance regressions in CI.
  • CDS - Enterprise-Grade CI/CD and DevOps Automation Open Source Platform.
  • dot - A minimal, local first continuous integration system that uses Docker to run jobs concurrently in stages.
  • drone - Drone is a Continuous Integration platform built on Docker, written in Go.
  • duci - A simple ci server no needs domain specific languages.
  • go-fuzz-action - Use Go 1.18's built-in fuzz testing in GitHub Actions.
  • go-test-coverage - Tool and GitHub action which reports issues when test coverage is below set threshold.
  • gomason - Test, Build, Sign, and Publish your go binaries from a clean workspace.
  • gotestfmt - go test output for humans.
  • goveralls - Go integration for continuous code coverage tracking system.
  • overalls - Multi-Package go project coverprofile for tools like goveralls.
  • roveralls - Recursive coverage testing tool.
  • woodpecker - Woodpecker is a community fork of the Drone CI system.

⬆ back to top

CSS Preprocessors

Libraries for preprocessing CSS files.

  • gcss - Pure Go CSS Preprocessor.
  • go-libsass - Go wrapper to the 100% Sass compatible libsass project.

⬆ back to top

Data Structures and Algorithms

Bit-packing and Compression

  • bingo - Fast, zero-allocation, lexicographical-order-preserving packing of native types to bytes.
  • binpacker - Binary packer and unpacker helps user build custom binary stream.
  • bit - Golang set data structure with bonus bit-twiddling functions.
  • crunch - Go package implementing buffers for handling various datatypes easily.
  • go-ef - A Go implementation of the Elias-Fano encoding.
  • roaring - Go package implementing compressed bitsets.

Bit Sets

  • bitmap - Dense, zero-allocation, SIMD-enabled bitmap/bitset in Go.
  • bitset - Go package implementing bitsets.

Bloom and Cuckoo Filters

  • bloom - Go package implementing Bloom filters.
  • bloom - Bloom filters implemented in Go.
  • bloom - Golang Bloom filter implementation.
  • bloomfilter - Yet another Bloomfilter implementation in Go, compatible with Java's Guava library.
  • boomfilters - Probabilistic data structures for processing continuous, unbounded streams.
  • cuckoo-filter - 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.
  • cuckoofilter - Cuckoo filter: a good alternative to a counting bloom filter implemented in Go.
  • ring - Go implementation of a high performance, thread safe bloom filter.

Data Structure and Algorithm Collections