首页
开源项目
搜索 TinyTools
AwesomeGo精选的Go框架、库和软件集
149.4k
在线演示
Github仓库
Gitee仓库
# Awesome Go **Awesome Go 无需月费**_,但我们的员工**辛勤工作**,确保它持续运行。筹集到的资金将用于回馈每一位参与者的辛勤付出!您可以查看我们如何计算账单和分配,因为它面向整个社区开放。想要成为该项目的支持者,请点击[此处](mailto:avelinorun+oss@gmail.com?subject=awesome-go%3A%20project%20support)。_ > 精选的优秀 Go 框架、库和软件列表。灵感来自 [awesome-python](https://github.com/vinta/awesome-python)。 **贡献:** 请先快速浏览[贡献指南](https://github.com/avelino/awesome-go/blob/main/CONTRIBUTING.md)。感谢所有贡献者;你们太棒了! > 如果您发现此处的某个软件包或项目不再维护或不再适用,请提交拉取请求以改进此文件。谢谢! - [Actor 模型](#actor-model) - [人工智能](#artificial-intelligence) - [音频和音乐](#audio-and-music) - [身份验证和授权](#authentication-and-authorization) - [区块链](#blockchain) - [机器人构建](#bot-building) - [构建自动化](#build-automation) - [命令行](#command-line) - [高级控制台 UI](#advanced-console-uis) - [标准 CLI](#standard-cli) - [配置](#configuration) - [持续集成](#continuous-integration) - [CSS 预处理器](#css-preprocessors) - [数据集成框架](#data-integration-frameworks) - [数据结构和算法](#data-structures-and-algorithms) - [位打包和压缩](#bit-packing-and-compression) - [位集](#bit-sets) - [布隆过滤器和布谷鸟过滤器](#bloom-and-cuckoo-filters) - [数据结构和算法集合](#data-structure-and-algorithm-collections) - [迭代器](#iterators) - [映射](#maps) - [其他数据结构和算法](#miscellaneous-data-structures-and-algorithms) - [可空类型](#nullable-types) - [队列](#queues) - [集合](#sets) - [文本分析](#text-analysis) - [树](#trees) - [管道](#pipes) - [数据库](#database) - [缓存](#caches) - [用 Go 实现的数据库](#databases-implemented-in-go) - [数据库模式迁移](#database-schema-migration) - [数据库工具](#database-tools) - [SQL 查询构建器](#sql-query-builders) - [数据库驱动程序](#database-drivers) - [多后端接口](#interfaces-to-multiple-backends) - [关系数据库驱动程序](#relational-database-drivers) - [NoSQL 数据库驱动程序](#nosql-database-drivers) - [搜索和分析数据库](#search-and-analytic-databases) - [日期和时间](#date-and-time) - [分布式系统](#distributed-systems) - [动态 DNS](#dynamic-dns) - [电子邮件](#email) - [可嵌入脚本语言](#embeddable-scripting-languages) - [错误处理](#error-handling) - [文件处理](#file-handling) - [金融](#financial) - [表单](#forms) - [函数式](#functional) - [游戏开发](#game-development) - [生成器](#generators) - [地理](#geographic) - [Go 编译器](#go-compilers) - [Goroutines](#goroutines) - [GUI](#gui) - [硬件](#hardware) - [图片](#images) - [物联网 (IoT)](#iot-internet-of-things) - [作业调度器](#job-scheduler) - [JSON](#json) - [日志记录](#logging) - [机器学习](#machine-learning) - [消息传递](#messaging) - [Microsoft Office](#microsoft-office) - [Microsoft Excel](#microsoft-excel) - [Microsoft Word](#microsoft-word) - [其他](#miscellaneous) - [依赖注入](#dependency-injection) - [项目布局](#project-layout) - [字符串](#strings) - [未分类](#uncategorized) - [自然语言处理](#natural-language-processing) - [语言检测](#language-detection) - [形态分析器](#morphological-analyzers) - [Slugifiers](#slugifiers) - [分词器](#tokenizers) - [翻译](#translation) - [音译](#transliteration) - [网络](#networking) - [HTTP 客户端](#http-clients) - [OpenGL](#opengl) - [ORM](#orm) - [包管理](#package-management) - [性能](#performance) - [查询语言](#query-language) - [反射](#reflection) - [资源嵌入](#resource-embedding) - [科学与数据分析](#science-and-data-analysis) - [安全](#security) - [序列化](#serialization) - [服务器应用程序](#server-applications) - [流处理](#stream-processing) - [模板引擎](#template-engines) - [测试](#testing) - [测试框架](#testing-frameworks) - [模拟](#mock) - [模糊测试和增量调试/减少/压缩](#fuzzing-and-delta-debuggingreducingshrinking) - [Selenium 和浏览器控制工具](#selenium-and-browser-control-tools) - [失败注入](#fail-injection) - [文本处理](#text-processing) - [格式化程序](#formatters) - [标记语言](#markup-languages) - [解析器/编码器/解码器](#parsersencodersdecoders) - [常规表达式](#正则表达式) - [Sanitation](#sanitation) - [Scrapers](#scrapers) - [RSS](#rss) - [实用程序/杂项](#utilitymiscellaneous) - [第三方 API](#third-party-apis) - [实用程序](#utilities) - [UUID](#uuid) - [验证](#validation) - [版本控制](#version-control) - [视频](#video) - [Web 框架](#web-frameworks) - [中间件](#middlewares) - [实际的中间件](#actual-middlewares) - [用于创建 HTTP 中间件的库](#libraries-for-creating-http-middlewares) - [路由器](#routers) - [WebAssembly](#webassembly) - [Webhooks 服务器](#webhooks-server) - [Windows](#windows) - [工作流框架](#workflow-frameworks) - [XML](#xml) - [零信任](#zero-trust) - [代码分析](#code-analysis) - [编辑器插件](#editor-plugins) - [Go 生成工具](#go-generate-tools) - [Go 工具](#go-tools) - [软件包](#software-packages) - [DevOps 工具](#devops-tools) - [其他软件](#other-software) - [资源](#resources) - [基准测试](#benchmarks) - [会议](#conferences) - [电子书](#e-books) - [电子书购买](#e-books-for-purchase) - [免费电子书](#free-e-books) - [Gophers](#gophers) - [聚会](#meetups) - [风格指南](#style-guides) - [社交媒体](#social-media) - [Twitter](#twitter) - [Reddit](#reddit) - [网站](#websites) - [教程](#tutorials) - [引导式学习](#guided-learning) **[⬆ 返回顶部](#contents)** ## Actor 模型 _用于构建基于 Actor 的程序的库。_ - [Ergo](https://github.com/ergo-services/ergo) - 一个基于 Actor 的框架,具有网络透明性,用于在 Golang 中创建事件驱动架构。灵感源自 Erlang。 - [Goakt](https://github.com/Tochemey/goakt) - 一个快速分布式 Actor 框架,使用协议缓冲区作为 Golang 的消息传递。 - [Hollywood](https://github.com/anthdm/hollywood) - 一个用 Golang 编写的超快轻量级 Actor 引擎。 - [ProtoActor](https://github.com/asynkron/protoactor-go) - Proto Actor - 适用于 Go、C# 和 Java/Kotlin 的超快速分布式 Actor。 ## 人工智能 _用于构建利用人工智能程序的库。_ - [chromem-go](https://github.com/philippgille/chromem-go) - 可嵌入 Go 语言的向量数据库,具有类似 Chroma 的接口,零第三方依赖。支持内存存储,并可选持久化。 - [fun](https://gitlab.com/tozd/go/fun) - 在 Go 中使用大型语言模型 (LLM) 的最简单但强大的方法。 - [langchaingo](https://github.com/tmc/langchaingo) - LangChainGo 是一个由语言模型驱动的应用程序开发框架。 - [LocalAI](https://github.com/mudler/LocalAI) - 开源 OpenAI 替代方案,自托管人工智能模型。 - [Ollama](https://github.com/jmorganca/ollama) - 在本地运行大型语言模型。 - [OllamaFarm](https://github.com/presbrey/ollamafarm) - 管理、负载均衡和故障转移 Ollamas 包 **[⬆ 返回顶部](#contents)** ## 音频和音乐 _用于处理音频的库。_ - [flac](https://github.com/mewkiz/flac) - 支持 FLAC 流的原生 Go FLAC 编码器/解码器。 - [gaad](https://github.com/Comcast/gaad) - 原生 Go AAC 比特流解析器。 - [GoAudio](https://github.com/DylanMeeus/GoAudio) - 原生 Go 音频处理库。 - [gosamplerate](https://github.com/dh1tw/gosamplerate) - 适用于 Go 的 libsamplerate 绑定。 - [id3v2](https://github.com/bogem/id3v2) - 适用于 Go 的 ID3 解码和编码库。 - [malgo](https://github.com/gen2brain/malgo) - 迷你音频库。 - [minimp3](https://github.com/tosone/minimp3) - 轻量级 MP3 解码器库。 - [Oto](https://github.com/hajimehoshi/oto) - 一个用于在多个平台上播放声音的底层库。 - [PortAudio](https://github.com/gordonklaus/portaudio) - PortAudio 音频 I/O 库的 Go 绑定。 **[⬆ 返回顶部](#contents)** ## 身份验证和授权 _用于实现身份验证和授权的库。_ - [authboss](https://github.com/volatiletech/authboss) - 面向 Web 的模块化身份验证系统。它尽可能地去除样板代码和“复杂的东西”,以便每次使用 Go 启动新的 Web 项目时,您都可以将其插入、配置并开始构建您的应用,而无需每次都构建身份验证系统。 - [branca](https://github.com/essentialkaos/branca) - 适用于 Golang 1.15+ 版本的 branca token [规范实现](https://github.com/tuupola/branca-spec)。 - [casbin](https://github.com/hsluoyz/casbin) - 支持 ACL、RBAC 和 ABAC 等访问控制模型的授权库。 - [cookiestxt](https://github.com/mengzhuo/cookiestxt) - 提供 cookies.txt 文件格式的解析器。 - [go-guardian](https://github.com/shaj13/go-guardian) - Go-Guardian 是一个 Golang 库,它提供了一种简单、干净且符合地道的方式来创建强大的现代 API 和 Web 身份验证,支持 LDAP、Basic、Bearer token 和基于证书的身份验证。 - [go-jose](https://github.com/go-jose/go-jose) - JOSE 工作组 JSON Web Token、JSON Web 签名和 JSON Web 加密规范的较为完整的实现。 - [goiabada](https://github.com/leodip/goiabada) - 一个支持 OAuth2 和 OpenID Connect 的开源身份验证和授权服务器。 - [gologin](https://github.com/dghubble/gologin) - 可链接的处理程序,用于使用 OAuth1 和 OAuth2 身份验证提供程序进行登录。 - [gorbac](https://github.com/mikespook/gorbac) - 用 Golang 语言提供了一个轻量级的基于角色的访问控制 (RBAC) 实现。 - [gosession](https://github.com/Kwynto/gosession) - 这是 GoLang 语言中 net/http 的快速会话。这个包可能是会话机制的最佳实现,或者至少它正在努力成为最佳实现。 - [goth](https://github.com/markbates/goth) - 提供一种简单、干净且符合 OAuth 和 OAuth2 规范的方式。开箱即用,支持多服务提供商。 - [jeff](https://github.com/abraithwaite/jeff) - 简单、灵活、安全且符合规范的 Web 会话管理,具有可插拔的后端。 - [jwt](https://github.com/pascaldekloe/jwt) - 轻量级 JSON Web Token (JWT) 库。 - [jwt](https://github.com/cristalhq/jwt) - 安全、简单、快速的 Go 语言 JSON Web Token。 - [jwt-auth](https://github.com/adam-hanna/jwt-auth) - 适用于 Golang http 服务器的 JWT 中间件,具有丰富的配置选项。 - [jwt-go](https://github.com/golang-jwt/jwt) - JSON Web Tokens (JWT) 的全功能实现。该库支持 JWT 的解析和验证,以及生成和签名。 - [jwx](https://github.com/lestrrat-go/jwx) - 实现各种 JWx (JWA/JWE/JWK/JWS/JWT,也称为 JOSE) 技术的 Go 模块。 - [keto](https://github.com/ory/keto) - “Zanzibar:Google 的一致全局授权系统”的开源 (Go) 实现。提供 gRPC、REST API、newSQL 以及一种简单易用的权限语言。支持 ACL、RBAC 和其他访问模型。 - [loginsrv](https://github.com/tarent/loginsrv) - JWT 登录微服务,支持可插拔后端,例如 OAuth2 (Github)、htpasswd 和 osiam。 - [oauth2](https://github.com/golang/oauth2) - goauth2 的后继者。通用的 OAuth 2.0 软件包,支持 JWT、Google API、Compute Engine 和 App Engine。 - [oidc](https://github.com/zitadel/oidc) - 易于使用的 OpenID Connect 客户端和服务器库,使用 Go 编写,并经 OpenID 基金会认证。 - [openfga](https://github.com/openfga/openfga) - 基于“Zanzibar:Google 的一致全局授权系统”论文,实现细粒度授权。由 [CNCF](https://www.cncf.io/) 支持。 - [osin](https://github.com/openshift/osin) - Golang OAuth2 服务器库。 - [otpgen](https://github.com/grijul/otpgen) - 用于生成 TOTP/HOTP 代码的库。 - [otpgo](https://github.com/jltorresm/otpgo) - Go 的基于时间的一次性密码 (TOTP) 和基于 HMAC 的一次性密码 (HOTP) 库。 - [paseto](https://github.com/o1egl/paseto) - 平台无关安全令牌 (PASETO) 的 Golang 实现。 - [permissions](https://github.com/xyproto/permissions) - 用于跟踪用户、登录状态和权限的库。使用安全 Cookie 和 bcrypt。 - [scope](https://github.com/SonicRoshan/scope) - 使用 Go 轻松管理 OAuth2 作用域。 - [scs](https://github.com/alexedwards/scs) - HTTP 服务器的会话管理器。 - [securecookie](https://github.com/chmike/securecookie) - 高效的安全 Cookie 编码/解码。 - [session](https://github.com/icza/session) - 用于 Web 服务器的 Go 会话管理(包括对 Google App Engine - GAE 的支持)。 - [sessions](https://github.com/adam-hanna/sessions) - 一款极其简单、高性能、高度可定制的 Go 语言 http 服务器会话服务。 - [sessionup](https://github.com/swithek/sessionup) - 简单高效的 HTTP 会话管理和身份识别包。 - [sjwt](https://github.com/brianvoe/sjwt) - 简单的 JWT 生成器和解析器。 - [spicedb](https://github.com/authzed/spicedb) - 一款受桑给巴尔启发的数据库,支持细粒度授权。 - [x509proxy](https://github.com/vkuznet/x509proxy) - 用于处理 X509 代理证书的库。 **[⬆ 返回顶部](#contents)** ## 区块链 _构建区块链的工具。_ - [cometbft](https://github.com/cometbft/cometbft) - 一个分布式、拜占庭容错、确定性状态机复制引擎。它是 Tendermint Core 的一个分支,并实现了 Tendermint 共识算法。 - [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) - 一个在 Cosmos 生态系统中构建公链的框架。 - [gno](https://github.com/gnolang/gno) - 一个使用 Golang 和 Gnolang 构建的综合智能合约套件,Gnolang 是一个确定性的、专为区块链设计的 Go 语言变体。 - [go-ethereum](https://github.com/ethereum/go-ethereum) - 以太坊协议的官方 Go 实现。 - [gosemble](https://github.com/LimeChain/gosemble) - 一个基于 Go 语言的框架,用于构建兼容 Polkadot/Substrate 的运行时。 - [gossamer](https://github.com/ChainSafe/gossamer) - Polkadot Host 的 Go 实现。 - [kubo](https://github.com/ipfs/kubo) - 一个用 Go 语言实现的区块链框架。它提供内容可寻址的存储,可用于 DApp 中的去中心化存储。它基于 IPFS 协议。 - [lnd](https://github.com/lightningnetwork/lnd) - 一个完整的闪电网络节点实现。 - [solana-go](https://github.com/gagliardetto/solana-go) - 一个 Go 库,用于与 Solana 的 JSON RPC 和 WebSocket 接口交互。 - [tendermint](https://github.com/tendermint/tendermint) - 高性能中间件,使用 Tendermint 共识和区块链协议,将任何编程语言编写的状态机转换为拜占庭容错复制状态机。 **[⬆ 返回顶部](#contents)** ## 机器人构建 _用于构建和使用机器人的库。_ - [arikawa](https://github.com/diamondburned/arikawa) - Discord API 的库和框架。 - [bot](https://github.com/go-telegram/bot) - 零依赖 Telegram 机器人库,带有额外的 UI 组件 - [echotron](https://github.com/NicoNex/echotron) - 一个优雅且并发的 Go 语言 Telegram 机器人库。 - [go-joe](https://joe-bot.net) - 一个受 Hubot 启发,但使用 Go 编写的通用机器人库。 - [go-sarah](https://github.com/oklahomer/go-sarah) - 用于构建聊天服务(包括 LINE、Slack、Gitter 等)的机器人框架。 - [go-tg](https://github.com/mr-linch/go-tg) - 由官方文档生成的 Go 客户端库,用于访问 Telegram Bot API,并包含构建复杂机器人所需的功能。 - [go-twitch-irc](https://github.com/gempir/go-twitch-irc) - 用于编写 twitch.tv 聊天机器人的库 - [micha](https://github.com/onrik/micha) - 用于 Telegram 机器人 API 的 Go 库。 - [slack-bot](https://github.com/innogames/slack-bot) - 为懒惰开发者提供即用型 Slack Bot:自定义命令、Jenkins、Jira、Bitbucket、Github…… - [slacker](https://github.com/slack-io/slacker) - 易于使用的 Slack 机器人框架。 - [telebot](https://github.com/tucnak/telebot) - Telegram 机器人框架采用 Go 语言编写。 - [telego](https://github.com/mymmrac/telego) - 适用于 Golang 的 Telegram Bot API 库,提供完整的一对一 API 实现。 - [telegram-bot-api](https://github.com/go-telegram-bot-api/telegram-bot-api) - 简洁干净的 Telegram 机器人客户端。 - [wayback](https://github.com/wabarc/wayback) - 一个适用于 Telegram、Mastodon、Slack 和其他消息平台存档网页的机器人。 **[⬆ 返回顶部](#contents)** ## 构建自动化 _库和工具助力构建自动化。_ - [1build](https://github.com/gopinath-langote/1build) - 命令行工具,可轻松管理项目特定命令。 - [air](https://github.com/cosmtrek/air) - Air - Go 应用的实时重新加载。 - [anko](https://github.com/GuilhermeCaruso/anko) - 适用于多种编程语言的简单应用程序监控器。 - [gaper](https://github.com/maxclaus/gaper) - 当 Go 项目崩溃或监控到某些文件发生更改时,构建并重启 Go 项目。 - [gilbert](https://go-gilbert.github.io) - Go 项目的构建系统和任务运行器。 - [gob](https://github.com/kcmvp/gob) - 类似 [Gradle](https://docs.gradle.org/)/[Maven](https://maven.apache.org/) 的 Go 项目构建工具。 - [goyek](https://github.com/goyek/goyek) - 使用 Go 创建构建流水线。 - [mage](https://github.com/magefile/mage) - Mage 是一款使用 Go 语言编写的类似 make/rake 的构建工具。 - [mmake](https://github.com/tj/mmake) - 现代化的 Make 语言。 - [realize](https://github.com/tockins/realize) - Go 构建系统,带有文件监控器,并可实时刷新。使用自定义路径运行、构建并监控文件变化。 - [Task](https://github.com/go-task/task) - 简单的“Make”替代方案。 - [taskctl](https://github.com/taskctl/taskctl) - 并发任务运行器。 - [xc](https://github.com/joerdav/xc) - 包含 README.md 定义任务和可执行 Markdown 文件的任务运行器。 **[⬆ 返回顶部](#contents)** ## 命令行 ### 高级控制台 UI _用于构建控制台应用程序和控制台用户界面的库。_ - [asciigraph](https://github.com/guptarohit/asciigraph) - Go 包,用于在命令行应用程序中创建轻量级 ASCII 折线图 ╭┈╯,无需其他依赖项。 - [aurora](https://github.com/logrusorgru/aurora) - 支持 fmt.Printf/Sprintf 的 ANSI 终端颜色。 - [box-cli-maker](https://github.com/Delta456/box-cli-maker) - 为您的 CLI 制作高度定制的盒子。 - [bubble-table](https://github.com/Evertras/bubble-table) - bubbletea 的交互式表格组件。 - [bubbles](https://github.com/charmbracelet/bubbles) - bubbletea 的 TUI 组件。 - [bubbletea](https://github.com/charmbracelet/bubbletea) - 基于 Elm 架构的 Go 框架,用于构建终端应用。 - [cfmt](https://github.com/mingrammer/cfmt) - 受 Bootstrap 颜色类启发的上下文 fmt。 - [cfmt](https://github.com/i582/cfmt) - 简单便捷的格式化风格化输出,与 fmt 库完全兼容。 - [chalk](https://github.com/ttacon/chalk) - 用于美化终端/控制台输出的直观软件包。 - [crab-config-files-templating](https://github.com/alfiankan/crab-config-files-templating) - 用于 Kubernetes 清单或通用配置文件的动态配置文件模板工具。 - [ctc](https://github.com/wzshiming/ctc) - 非侵入式跨平台终端颜色库,无需修改 Print 方法。 - [fx](https://github.com/antonmedv/fx) - 终端 JSON 查看器和处理器。 - [go-ataman](https://github.com/workanator/go-ataman) - 用于在终端中渲染 ANSI 彩色文本模板的 Go 库。 - [go-colorable](https://github.com/mattn/go-colorable) - 适用于 Windows 的彩色编写器。 - [go-colortext](https://github.com/daviddengcn/go-colortext) - 用于终端颜色输出的 Go 库。 - [go-isatty](https://github.com/mattn/go-isatty) - 用于 Go 语言的 isatty。 - [go-palette](https://github.com/abusomani/go-palette) - 使用 ANSI 颜色提供优雅便捷样式定义的 Go 库。完全兼容并封装了 [fmt](https://pkg.go.dev/fmt),以实现美观的终端布局。 - [go-prompt](https://github.com/c-bata/go-prompt) - 用于构建强大交互式提示符的库,灵感源自 [python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit)。 - [gocui](https://github.com/jroimartin/gocui) - 极简 Go 库,旨在创建控制台用户界面。 - [gommon/color](https://github.com/labstack/gommon/tree/master/color) - 用于设置终端文本样式。 - [gookit/color](https://github.com/gookit/color) - 终端颜色渲染工具库,支持 16 色、256 色、RGB 颜色渲染输出,兼容 Windows。 - [lipgloss](https://github.com/charmbracelet/lipgloss) - 以声明方式定义终端中颜色、格式和布局的样式。 - [marker](https://github.com/cyucelen/marker) - 匹配和标记字符串以实现彩色终端输出的最简单方法。 - [mpb](https://github.com/vbauerster/mpb) - 用于终端应用程序的多进度条。 - [progressbar](https://github.com/schollz/progressbar) - 适用于所有操作系统的基本线程安全进度条。 - [pterm](https://github.com/pterm/pterm) - 一个用于美化各平台控制台输出的库,包含许多可组合的组件。 - [simpletable](https://github.com/alexeyco/simpletable) - 使用 Go 语言在终端中创建简单的表格。 - [spinner](https://github.com/briandowns/spinner) - Go 语言包,可轻松提供带有选项的终端旋转器。 - [tabby](https://github.com/cheynewa)llace/tabby) - 一个用于超级简单的 Golang 表格的小型库。 - [table](https://github.com/tomlazar/table) - 用于终端颜色表格的小型库。 - [termbox-go](https://github.com/nsf/termbox-go) - Termbox 是一个用于创建跨平台文本界面的库。 - [termdash](https://github.com/mum4k/termdash) - 基于 **termbox-go** 的 Go 终端仪表板,灵感来自 [termui](https://github.com/gizak/termui)。 - [termenv](https://github.com/muesli/termenv) - 为您的终端应用程序提供高级 ANSI 样式和颜色支持。 - [termui](https://github.com/gizak/termui) - 基于 **termbox-go** 的 Go 终端仪表盘,灵感源自 [blessed-contrib](https://github.com/yaronn/blessed-contrib)。 - [uilive](https://github.com/gosuri/uilive) - 用于实时更新终端输出的库。 - [uiprogress](https://github.com/gosuri/uiprogress) - 灵活的库,用于在终端应用中渲染进度条。 - [uitable](https://github.com/gosuri/uitable) - 使用表格数据提升终端应用可读性的库。 - [yacspin](https://github.com/theckman/yacspin) - 另一个 CLi Spinner 包,用于处理终端 Spinner。 **[⬆ 返回顶部](#contents)** ### 标准 CLI _用于构建标准或基本命令行应用程序的库。_ - [acmd](https://github.com/cristalhq/acmd) - 简单、实用且功能强大的 Go 语言 CLI 包。 - [argparse](https://github.com/akamensky/argparse) - 受 Python argparse 模块启发的命令行参数解析器。 - [argv](https://github.com/cosiner/argv) - Go 库,使用 Bash 语法将命令行字符串拆分为参数数组。 - [carapace](https://github.com/rsteube/carapace) - 适用于 spf13/cobra 的命令参数补全生成器。 - [carapace-bin](https://github.com/rsteube/carapace-bin) - 多 Shell 多命令参数补全器。 - [carapace-spec](https://github.com/rsteube/carapace-spec) - 使用 spec 文件定义简单的补全。 - [climax](https://github.com/tucnak/climax) - 具有“人性化”界面的替代 CLI,秉承 Go 命令的精髓。 - [clîr](https://github.com/leaanthony/clir) - 一个简洁明了的 CLI 库,无需依赖。 - [cmd](https://github.com/posener/cmd) - 扩展标准 `flag` 包,以更符合语言习惯的方式支持子命令及更多功能。 - [cmdr](https://github.com/hedzr/cmdr) - 一个 POSIX/GNU 风格、类似 getopt 的 Go 命令行 UI 库。 - [cobra](https://github.com/spf13/cobra) - 用于现代 Go CLI 交互的 Commander。 - [command-chain](https://github.com/rainu/go-command-chain) - 一个用于配置和运行命令链的 Go 库 - 例如在 Unix Shell 中进行流水线操作。 - [commandeer](https://github.com/jaffee/commandeer) - 开发者友好的 CLI 应用:根据结构体字段和标签设置标志、默认值和用法。 - [complete](https://github.com/posener/complete) - 使用 Go 编写 bash 补全功能 + Go 命令 bash 补全。 - [console](https://github.com/reeflective/console) 一个用于 Cobra 命令的闭环应用程序库,带有 oh-my-posh 提示符等。 - [Dnote](https://github.com/dnote/dnote) - 一个支持多设备同步的简单命令行笔记本。 - [elvish](https://github.com/elves/elvish) - 一种富有表现力的编程语言和一个多功能的交互式 Shell。 - [env](https://github.com/codingconcepts/env) - 基于标签的结构体环境配置。 - [flaggy](https://github.com/integrii/flaggy) - 一个健壮且符合语言习惯的 flags 包,具有出色的子命令支持。 - [flagvar](https://github.com/sgreben/flagvar) - Go 标准 `flag` 包的 flag 参数类型集合。 - [getopt](https://github.com/jon-codes/getopt) - 一个精确的 Go `getopt` 函数,已针对 GNU libc 实现进行验证。 - [go-arg](https://github.com/alexflint/go-arg) - Go 中基于结构体的参数解析。 - [go-flags](https://github.com/jessevdk/go-flags) - Go 命令行选项解析器。 - [go-getoptions](https://github.com/DavidGamba/go-getoptions) - Go 选项解析器,其灵感源自 Perl 的 GetOpt::Long 的灵活性。 - [go-readline-ny](https://github.com/nyaosorg/go-readline-ny) - 一个可自定义的行编辑库,包含 Emacs 快捷键绑定、Unicode 支持、自动补全和语法高亮功能。用于 NYAGOS shell。 - [gocmd](https://github.com/devfacet/gocmd) - 用于构建命令行应用程序的 Go 库。 - [goopt](https://github.com/napalu/goopt) - 一个声明式的、基于结构体标签的 Go 命令行框架,具有丰富的功能,例如分层命令/标志、国际化、shell 自动补全和验证。 - [hashicorp/cli](https://github.com/hashicorp/cli) - 用于实现命令行界面的 Go 库。 - [hiboot cli](https://github.com/hidevopsio/hiboot/tree/master/pkg/app/cli) - 具有自动配置和依赖注入功能的 cli 应用框架。 - [job](https://github.com/liujianping/job) - JOB,可将短期命令转换为长期任务。 - [kingpin](https://github.com/alecthomas/kingpin) - 支持子命令的命令行和标志解析器(已被 `kong` 取代;详见下文)。 - [liner](https://github.com/peterh/liner) - 类似 readline 的 Go 命令行界面库。 - [mcli](https://github.com/jxskiss/mcli) - 一个极简但功能强大的 Go cli 库。 - [mkideal/cli](https://github.com/mkideal/cli) - 基于 Go 结构体标签,功能丰富且易于使用的命令行包。 - [mow.cli](https://github.com/jawher/mow.cli) - 用于构建 CLI 应用程序的 Go 库,具有复杂的标志和参数解析和验证功能。 - [ops](https://github.com/nanovms/ops) - Unikernel 构建器/编排器。 - [pflag](https://github.com/spf13/pflag) - Go 标志包的直接替代品,实现 POSIX/GNU 风格的 --flags 选项。 - [readline](https://github.com/reeflective/readline) - 具有现代且易于使用的 UI 功能的 Shell 库。 - [sand](https://github.com/Zaba505/sand) - 用于创建解释器等功能的简单 API。 - [sflags](https://github.com/octago/sflags) - 基于结构体的标志生成器,适用于 flag、urfave/cli、pflag、cobra、kingpin 和其他库。 - [strumt](https://github.com/antham/strumt) - 用于创建提示符链的库。 - [subcmd](https://github.com/bobg/subcmd) - 解析和运行子命令的另一种方法。与标准 `flag` 包协同工作。 - [teris-io/cli](https://github.com/teris-io/cli) - 用于使用 Go 语言构建命令行界面的简单而完整的 API。 - [ts](https://github.com/liujianping/ts) - 时间戳转换和比较工具。 - [ukautz/clif](https://github.com/ukautz/clif) - 小型命令行界面框架。 - [urfave/cli](https://github.com/urfave/cli) - 用于使用 Go 语言构建命令行应用程序的简单、快速且有趣的包(以前称为 codegangsta/cli)。 - [version](https://github.com/mszostok/version) - 以多种格式收集并显示 CLI 版本信息以及升级通知。 - [wlog](https://github.com/dixonwille/wlog) - 支持跨平台颜色和并发的简单日志记录接口。 - [wmenu](https://github.com/dixonwille/wmenu) - 适用于命令行应用程序的易于使用的菜单结构,可提示用户进行选择。 **[⬆ 返回顶部](#contents)** ## 配置 _用于配置解析的库。_ - [aconfig](https://github.com/cristalhq/aconfig) - 简单、实用且功能强大的配置加载器。 - [bcl](https://github.com/wkhere/bcl) - BCL 是一种类似于 HCL 的配置语言。 - [cleanenv](https://github.com/ilyakaznacheev/cleanenv) - 极简配置读取器(可从文件、ENV 以及任何所需位置读取)。 - [config](https://github.com/JeremyLoy/config) - 云原生应用配置。只需两行即可将 ENV 绑定到结构体。 - [config](https://github.com/num30/config) - 两行代码即可使用文件、环境变量或标志配置您的应用 - [configuration](https://github.com/BoRuDar/configuration) - 用于从环境变量、文件、标志和“default”标签初始化配置结构的库。 - [configure](https://github.com/paked/configure) - 通过多种来源提供配置,包括 JSON、标志和环境变量。 - [configuro](https://github.com/sherifabdlnaby/configuro) - 一个基于 ENV 和 Files 的、自主研发的配置加载和验证框架,专注于符合 12 要素规范的应用程序。 - [confiq](https://github.com/greencoda/confiq) - 用于 Go 结构化数据格式的配置结构体解码器库 - 支持多种数据格式 - [confita](https://github.com/heetch/confita) - 将多个后端的配置级联加载到结构体中。 - [conflate](https://github.com/the4thamigo-uk/conflate) - 用于合并来自任意 URL 的多个 JSON/YAML/TOML 文件的库/工具,根据 JSON 模式进行验证,并应用模式中定义的默认值。 - [env](https://github.com/caarlos0/env) - 将环境变量解析为 Go 结构体(带默认值)。 - [env](https://github.com/junk1tm/env) - 一个用于将环境变量加载到结构体的轻量级包。 - [env](https://github.com/syntaqx/env) - 一个支持解组为结构体的环境实用程序包 - [envconfig](https://github.com/vrischmann/envconfig) - 从环境变量读取配置。 - [envh](https://github.com/antham/envh) - 管理环境变量的助手。 - [envyaml](https://github.com/yuseferi/envyaml) - 带有环境变量读取器的 Yaml 文件。它有助于将机密信息作为环境变量,但将其配置加载为结构化的 Yaml 文件。 - [fig](https://github.com/kkyr/fig) - 一个小型库,用于从文件和环境变量读取配置(带有验证和默认值)。 - [genv](https://github.com/sakirsensoy/genv) - 借助 dotenv 支持轻松读取环境变量。 - [go-array](https://github.com/deatil/go-array) - 一个 Go 包,用于从 map、slice 或 json 中读取或设置数据。 - [go-aws-ssm](https://github.com/PaddleHQ/go-aws-ssm) - 一个 Go 包,用于从 AWS System Manager - Parameter Store 获取参数。 - [go-cfg](https://github.com/dsbasko/go-cfg) - 该库提供了一种统一的方法,可以从各种来源(例如环境变量、标志和配置文件 (.json、.yaml、.toml、.env))将配置数据读取到结构体中。 - [go-conf](https://github.com/ThomasObenaus/go-conf) - 一个基于注解结构体的应用程序配置简单库。它支持从环境变量、配置文件和命令行参数中读取配置。 - [go-ini](https://github.com/subpop/go-ini) - 一个用于编组和解组 INI 文件的 Go 包。 - [go-ssm-config](https://github.com/ianlopshire/go-ssm-config) - 一个用于从 AWS SSM(参数存储)加载配置参数的 Go 实用程序。 - [go-up](https://github.com/ufoscout/go-up) - 一个简单的配置库,具有递归占位符解析功能,没有任何魔法。 - [GoCfg](https://github.com/Jagerente/gocfg) - 配置管理器,包含基于结构体标签的合约、自定义值提供程序、解析器和文档生成功能。可定制且简单易用。 - [godotenv](https://github.com/joho/godotenv) - Ruby dotenv 库的 Go 移植版本(从 `.env` 加载环境变量)。 - [gofigure](https://github.com/ian-kent/gofigure) - 轻松配置 Go 应用程序。 - [GoLobby/Config](https://github.com/golobby/config) - GoLobby Config 是一款轻量级但功能强大的 Go 编程语言配置管理器。 - [gone/jconf](https://github.com/One-com/gone/tree/master/jconf) - 模块化 JSON 配置。您可以将配置结构体与其配置代码放在一起,并将解析委托给子模块,而无需牺牲完整的配置序列化。 - [gonfig](https://github.com/milad-abbasi/gonfig) - 基于标签的配置解析器,可将来自不同提供程序的值加载到类型安全的结构体中。 - [gookit/config](https://github.com/gookit/config) - 应用程序配置管理(加载、获取、设置)。支持 JSON、YAML、TOML、INI 和 HCL。支持多文件加载和数据覆盖合并。 - [harvester](https://github.com/beatlabs/harvester) - Harvester,一个易于使用的静态和动态配置包,支持种子设置、环境变量和 Consul 集成。 - [hedzr/store](https://github.com/hedzr/sto)re) - 可扩展、高性能的配置管理库,已针对分层数据进行优化。 - [hjson](https://github.com/hjson/hjson-go) - 人性化的 JSON 配置文件格式。语法简洁,错误更少,注释更丰富。 - [hocon](https://github.com/gurkankaymak/hocon) - 用于处理 HOCON(人性化的 JSON 超集)格式的配置库,支持环境变量、引用其他值、注释和多文件等功能。 - [ingo](https://github.com/schachmat/ingo) - 类似 ini 的配置文件,标志持久化。 - [ini](https://github.com/go-ini/ini) - 用于读写 INI 文件的 Go 包。 - [ini](https://github.com/wlevene/ini) - INI 解析和写入库,支持解组为结构体、编组为 JSON、写入文件、监视文件。 - [joshbetz/config](https://github.com/joshbetz/config) - 一个小型的 Go 配置库,可解析环境变量和 JSON 文件,并在 SIGHUP 时自动重新加载。 - [kelseyhightower/envconfig](https://github.com/kelseyhightower/envconfig) - 用于管理环境变量配置数据的 Go 库。 - [koanf](https://github.com/knadh/koanf) - 一个轻量级、可扩展的 Go 应用程序中的配置读取库。内置对 JSON、TOML、YAML、env 和命令行的支持。 - [konf](https://github.com/nil-go/konf) - 用于从文件、env、flag 和云平台(例如 AWS、Azure、GCP)读取/查看配置的最简单的 API。 - [konfig](https://github.com/lalamove/konfig) - 面向分布式处理时代的 Go 可组合、可观察且高性能的配置处理工具。 - [kong](https://github.com/alecthomas/kong) - 命令行解析器,支持任意复杂的命令行结构以及其他配置源,例如 YAML、JSON、TOML 等(kingpin 的后继者)。 - [mini](https://github.com/sasbury/mini) - 用于解析 ini 风格配置文件的 Golang 包。 - [nasermirzaei89/env](https://github.com/nasermirzaei89/env) - 用于读取环境变量的简单实用的包。 - [nfigure](https://github.com/muir/nfigure) - 基于每个库的结构标签的命令行配置(Posix 和 Go 风格);环境、JSON、YAML - [onion](https://github.com/goraz/onion) - 基于 Go 的分层配置,支持 JSON、TOML、YAML、属性、etcd、env 和 PGP 加密。 - [piper](https://github.com/Yiling-J/piper) - Viper 封装器,支持配置继承和密钥生成。 - [sonic](https://github.com/bytedance/sonic) - 一个极速 JSON 序列化和反序列化库。 - [store](https://github.com/tucnak/store) - 轻量级 Go 的配置管理器。 - [swap](https://github.com/oblq/swap) - 根据构建环境(YAML、TOML、JSON 和 env)递归实例化/配置结构体。 - [typenv](https://github.com/diegomarangoni/typenv) - 极简、零依赖、类型化的环境变量库。 - [uConfig](https://github.com/omeid/uconfig) - 轻量级、零依赖、可扩展的配置管理工具。 - [viper](https://github.com/spf13/viper) - 使用 fangs 进行 Go 配置。 - [xdg](https://github.com/adrg/xdg) - [XDG 基本目录规范](https://specifications.freedesktop.org/basedir-spec/latest/) 和 [XDG 用户目录](https://wiki.archlinux.org/index.php/XDG_user_directories) 的 Go 实现。 - [yamagiconf](https://github.com/romshark/yamagiconf) - 用于 Go 配置的 YAML“安全子集”。 - [zerocfg](https://github.com/chaindead/zerocfg) - 零投入、简洁的配置管理,避免了样板代码和重复代码,并支持多个源,并可设置优先级覆盖。 **[⬆ 返回顶部](#contents)** ## 持续集成 _持续集成辅助工具。_ - [abstruse](https://github.com/bleenco/abstruse) - Abstruse 是一个分布式持续集成 (CI) 平台。 - [Bencher](https://bencher.dev/) - 一套持续基准测试工具,旨在捕捉持续集成 (CI) 中的性能回归问题。 - [CDS](https://github.com/ovh/cds) - 企业级持续集成/持续交付 (CI/CD) 和 DevOps 自动化开源平台。 - [dot](https://github.com/opnlabs/dot) - 一个极简的、本地优先的持续集成系统,使用 Docker 分阶段并发运行作业。 - [drone](https://github.com/drone/drone) - Drone 是一个基于 Docker 构建的持续集成平台,使用 Go 语言编写。 - [go-beautiful-html-coverage](https://github.com/gha-common/go-beautiful-html-coverage) - 一款 GitHub Action,用于免费跟踪拉取请求中的代码覆盖率,并提供精美的 HTML 预览。 - [go-fuzz-action](https://github.com/jidicula/go-fuzz-action) - 在 GitHub Actions 中使用 Go 1.18 内置的模糊测试。 - [go-semver-release](https://github.com/s0ders/go-semver-release) - 自动化 Git 代码库的语义版本控制。 - [go-test-coverage](https://github.com/vladopajic/go-test-coverage) - 一款工具和 GitHub Action,用于在测试覆盖率低于设定阈值时报告问题。 - [gomason](https://github.com/nikogura/gomason) - 在干净的工作区中测试、构建、签名和发布您的 Go 二进制文件。 - [gotestfmt](https://github.com/GoTestTools/gotestfmt) - 为 Go 测试人员提供输出。 - [goveralls](https://github.com/mattn/goveralls) - Go 集成,用于 Coveralls.io 持续代码覆盖率跟踪系统。 - [muffet](https://github.com/raviqqe/muffet) - Go 语言快速网站链接检查器,请参阅 [alternatives](https://github.com/lycheeverse/lychee#features)。 - [overalls](https://github.com/go-playground/overalls) - 为 goveralls 等工具提供多包 Go 项目 Coverprofile。 - [roveralls](https://github.com/LawrenceWoodman/roveralls) - 递归覆盖率测试工具。 - [woodpecker](https://github.com/woodpecker-ci/woodpecker) - Woodpecker 是 Drone CI 系统的社区分支。 **[⬆ 返回顶部](#contents)** ## CSS 预处理器 _用于预处理 CSS 文件的库。_ - [go-libsass](https://github.com/wellington/go-libsass) - 100% 兼容 Sass 的 libsass 项目的 Go 封装器。 **[⬆ 返回顶部](#contents)** ## 数据集成框架 _用于执行 ELT / ETL 的框架_ - [Benthos](https://github.com/benthosdev/benthos) - 跨多种协议的消息流桥接器。 - [CloudQuery](http://github.com/cloudquery/cloudquery) - 具有可插拔架构的高性能 ELT 数据集成框架。 - [omniparser](https://github.com/jf-tech/omniparser) - 一个多功能的 ETL 库,能够以流式方式解析文本输入(CSV/txt/JSON/XML/EDI/X12/EDIFACT 等),并使用数据驱动的模式将数据转换为 JSON 输出。 **[⬆ 返回顶部](#contents)** ## 数据结构与算法 ### 位打包与压缩 - [bingo](https://github.com/iancmcc/bingo) - 快速、零分配、保留字典序的原生类型打包为字节数据。 - [binpacker](https://github.com/zhuangsirui/binpacker) - 二进制打包器和解包器,帮助用户构建自定义二进制流。 - [bit](https://github.com/yourbasic/bit) - Golang 集合数据结构,附带额外的位操作函数。 - [crunch](https://github.com/superwhiskers/crunch) - Go 实现的缓冲区包,可轻松处理各种数据类型。 - [go-ef](https://github.com/amallia/go-ef) - Elias-Fano 编码的 Go 实现。 - [roaring](https://github.com/RoaringBitmap/roaring) - 实现压缩位集的 Go 包。 ### 位集 - [bitmap](https://github.com/kelindar/bitmap) - Go 语言实现的密集、零分配、支持 SIMD 的位图/位集。 - [bitset](https://github.com/bits-and-blooms/bitset) - 实现位集的 Go 包。 ### 布隆过滤器和布谷鸟过滤器 - [bloom](https://github.com/bits-and-blooms/bloom) - 实现布隆过滤器的 Go 包。 - [bloom](https://github.com/zhenjl/bloom) - Go 语言实现的布隆过滤器。 - [bloom](https://github.com/yourbasic/bloom) - Golang 布隆过滤器实现。 - [bloomfilter](https://github.com/OldPanda/bloomfilter) - 另一个用 Go 语言实现的 Bloomfilter,兼容 Java 的 Guava 库。 - [boomfilters](https://github.com/tylertreat/BoomFilters) - 用于处理连续、无界数据流的概率数据结构。 - [cuckoo-filter](https://github.com/linvon/cuckoo-filter) - Cuckoo 过滤器:一个功能全面的 Cuckoo 过滤器,与其他实现相比,它可配置且节省空间,并且具备原文中提到的所有功能。 - [cuckoofilter](https://github.com/seiflotfy/cuckoofilter) - Cuckoo 过滤器:一个用 Go 语言实现的计数型布隆过滤器的良好替代方案。 - [ring](https://github.com/TheTannerRyan/ring) - 一个用 Go 语言实现的高性能、线程安全的布隆过滤器。 ### 数据结构和算法库 - [algorithms](https://github.com/shady831213/algorithms) - 算法和数据结构。CLRS 学习。 - [go-datastructures](https://github.com/Workiva/go-datastructures) - 实用、高性能且线程安全的数据结构库。 - [gods](https://github.com/emirpasic/gods) - Go 数据结构库。包括容器、集合、列表、堆栈、映射、双向映射、树、哈希集等。 - [gostl](https://github.com/liyue201/gostl) - Go 数据结构和算法库,旨在提供类似 C++ STL 的功能。 ### 迭代器 - [goterator](https://github.com/yaa110/goterator) - 迭代器实现,提供 map 和 reduce 功能。 - [iter](https://github.com/disksing/iter) - Go 语言实现的 C++ STL 迭代器和算法。 ### Maps 另请参阅 [Database](#database) 了解更复杂的键值存储,以及 [Trees](#trees) 了解其他有序 Map 的实现。 - [cmap](https://github.com/lrita/cmap) - Go 语言线程安全的并发 Map,支持使用 `interface{}` 作为键并自动扩容分片。 - [dict](https://github.com/srfrog/dict) - Go 语言类似 Python 的字典 (dict)。 - [go-shelve](https://github.com/lucmq/go-shelve) - Go 语言持久化、类似 Map 的对象。支持多个嵌入式键值存储。 - [goradd/maps](https://github.com/goradd/maps) - Go 1.18+ 通用 map 接口,支持 map、安全 map、有序 map、有序安全 map 等。 ### 其他数据结构和算法 - [concurrent-writer](https://github.com/free/concurrent-writer) - `bufio.Writer` 的高并发嵌入式替代品。 - [count-min-log](https://github.com/seiflotfy/count-min-log) - Go 实现 Count-Min-Log 的 sketch:使用近似计数器进行近似计数(类似 Count-Min sketch,但占用内存更少)。 - [fsm](https://github.com/cocoonspace/fsm) - 有限状态机包。 - [genfuncs](https://github.com/nwillc/genfuncs) - Go 1.18+ 泛型包,灵感来自 Kotlin 的 Sequence 和 Map。 - [go-generics](https://github.com/bobg/go-generics) - 通用的切片、映射、集合、迭代器和 Goroutine 实用程序。 - [go-geoindex](https://github.com/hailocab/go-geoindex) - 内存地理索引。 - [go-rampart](https://github.com/francesconi/go-rampart) - 确定区间之间的关系。 - [go-rquad](https://github.com/aurelien-rainone/go-rquad)- 具有高效点定位和邻域查找功能的区域四叉树。 - [go-tuple](https://github.com/barweiss/go-tuple) - Go 1.18+ 版本的通用元组实现。 - [go18ds](https://github.com/daichi-m/go18ds) - 使用 Go 1.18 泛型的 Go 数据结构。 - [gofal](https://github.com/xxjwxc/gofal) - Go 的 fractional api。 - [gogu](https://github.com/esimov/gogu) - 一个全面、可复用、高效的并发安全泛型实用函数和数据结构库。 - [gota](https://github.com/kniren/gota) - Go 数据帧、序列和数据整理方法的实现。 - [hide](https://github.com/emvi/hide) - ID 类型,支持哈希值编组,以防止将 ID 发送给客户端。 - [hyperloglog](https://github.com/axiomhq/hyperloglog) - HyperLogLog 实现,支持稀疏排序、LogLog-Beta 偏差校正和 TailCut 空间缩减。 - [quadtree](https://github.com/s0rg/quadtree) - 通用、零分配、100% 测试覆盖的四叉树。 - [slices](https://github.com/twharmon/slices) - 用于切片的纯通用函数。 ### 可空类型 - [nan](https://github.com/kak-tus/nan) - 一个库中包含零分配可空结构,以及便捷的转换函数、编组器和解组器。 - [null](https://github.com/emvi/null) - 可空的 Go 类型,可与 JSON 进行编组/解组。 - [typ](https://github.com/gurukami/typ) - 空类型,安全的原始类型转换以及从复杂结构中获取值。 ### 队列 - [deque](https://github.com/edwingeng/deque) - 高度优化的双端队列。 - [deque](https://github.com/gammazero/deque) - 快速环形缓冲区双端队列(双端队列)。 - [dqueue](https://github.com/vodolaz095/dqueue) - 简单、内存管理、零依赖、久经考验、线程安全的延迟队列。 - [goconcurrentqueue](https://github.com/enriquebris/goconcurrentqueue) - 并发 FIFO 队列。 - [hatchet](https://github.com/hatchet-dev/hatchet) - 分布式容错任务队列。 - [memlog](https://github.com/embano1/memlog) - 一个易于使用、轻量级、线程安全且仅支持追加操作的内存数据结构,灵感源自 Apache Kafka。 - [queue](https://github.com/adrianbrad/queue) - 多个线程安全的通用 Go 队列实现。 ### 集合 - [dsu](https://github.com/ihebu/dsu) - Go 语言中不相交集合数据结构的实现。 - [golang-set](https://github.com/deckarep/golang-set) - Go 语言中线程安全和非线程安全的高性能集合。 - [goset](https://github.com/zoumo/goset) - 一个实用的 Go 集合实现。 - [set](https://github.com/StudioSol/set) - 使用 LinkedHashMap 在 Go 中实现的简单集合数据结构。 ### 文本分析 - [bleve](https://github.com/blevesearch/bleve) - 适用于 Go 语言的现代文本索引库。 - [go-adaptive-radix-tree](https://github.com/plar/go-adaptive-radix-tree) - 自适应基数树 (Adaptive Radix Tree) 的 Go 实现。 - [go-edlib](https://github.com/hbollon/go-edlib) - Go 语言字符串比较和编辑距离算法库(Levenshtein、LCS、Hamming、Damerau levenshtein、Jaro-Winkler 等),兼容 Unicode。 - [levenshtein](https://github.com/agext/levenshtein) - Levenshtein 距离和相似度指标,可自定义编辑成本,并提供类似 Winkler 的公共前缀奖励。 - [levenshtein](https://github.com/agnivade/levenshtein) - Go 语言实现的 levenshtein 距离计算方法。 - [mspm](https://github.com/BlackRabbitt/mspm) - 用于信息检索的多字符串模式匹配算法。 - [parsefields](https://github.com/MonaxGT/parsefields) - 用于解析类 JSON 日志的工具,用于收集唯一字段和事件。 - [ptrie](https://github.com/viant/ptrie) - 前缀树的实现。 - [trie](https://github.com/derekparker/trie) - Go 语言实现的 Trie 树。 ### 树 - [hashsplit](http://github.com/bobg/hashsplit) - 将字节流拆分成块,并将块排列成树,边界由内容而非位置决定。 - [merkle](https://github.com/bobg/merkle) - 高效计算 Merkle 根哈希和包含证明。 - [skiplist](https://github.com/MauriceGit/skiplist) - 非常快速的 Go 语言 Skiplist 实现。 - [skiplist](https://github.com/gansidui/skiplist) - Go 语言的 Skiplist 实现。 - [treemap](https://github.com/igrmk/treemap) - 通用的键排序映射,底层使用红黑树。 ### 管道 - [ordered-concurrently](https://github.com/tejzpr/ordered-concurrently) - Go 模块,可并发处理工作,并按输入顺序在通道中返回输出。 - [parapipe](https://github.com/nazar256/parapipe) - FIFO 管道,在每个阶段并行执行,同时保持消息和结果的顺序。 - [pipeline](https://github.com/hyfather/pipeline) - 一个支持扇入和扇出的管道实现。 - [pipelines](https://github.com/nxdir-s/pipelines) - 用于并发处理的通用管道函数。 **[⬆ 返回顶部](#contents)** ## 数据库 ### 缓存 _具有过期记录的数据存储、内存分布式数据存储或基于文件数据库的内存子集。_ - [2q](https://github.com/floatdrop/2q) - 2Q 内存缓存实现。 - [bcache](https://github.com/iwanbk/bcache) - 最终一致性分布式内存缓存 Go 库。 - [BigCache](https://github.com/allegro/bigcache) - 适用于 GB 级数据的高效键/值缓存。 - [cache](https://github.com/akyoto/cache) - 内存中键值对缓存,支持过期时间,0 依赖,<100 行代码,100% 覆盖率。 - [cache2go](https://github.com/muesli/cache2go) - 内存中键值对缓存,支持基于超时自动失效。 - [cachego](https://github.com/faabiosr/cachego) - 适用于多种驱动程序的 Golang 缓存组件。 - [clusteredBigCache](https://github.com/oaStuff/clusteredBigCache) - 支持集群和单个数据项过期的 BigCache。 - [coherence-go-client](https://github.com/oracle/coherence-go-client) - 为 Go 应用程序完整实现 Oracle Coherence 缓存 API,使用 gRPC 作为网络传输方式。 - [couchcache](https://github.com/codingsince1985/couchcache) - 基于 Couchbase 服务器的 RESTful 缓存微服务。 - [EchoVault](https://github.com/EchoVault/EchoVault) - 可嵌入的分布式内存数据存储,兼容 Redis 客户端。 - [fastcache](https://github.com/VictoriaMetrics/fastcache) - 快速线程安全的内存缓存,适用于海量数据,并最大限度地降低 GC 开销。 - [GCache](https://github.com/bluele/gcache) - 支持可过期缓存、LFU、LRU 和 ARC 的缓存库。 - [gdcache](https://github.com/ulovecode/gdcache) - 一个由 golang 实现的纯非侵入式缓存库,您可以使用它来实现您自己的分布式缓存。 - [go-cache](https://github.com/viney-shih/go-cache) - 一个灵活的多层 Go 缓存库,采用 Cache-Aside 模式处理内存和共享缓存。 - [go-freelru](https://github.com/elastic/go-freelru) 一个无 GC、快速且通用的 LRU 哈希表库,具有可选的锁定、分片、逐出和过期功能。 - [go-gcache](https://github.com/szyhf/go-gcache) - `GCache` 的通用版本,支持可过期缓存、LFU、LRU 和 ARC 缓存。 - [go-mcache](https://github.com/OrlovEvgeny/go-mcache) - 快速的内存键值存储/缓存库。支持指针缓存。 - [gocache](https://github.com/eko/gocache) - 一个完整的 Go 缓存库,支持多种存储方式(内存、memcache、redis 等),可链式缓存、可加载缓存、指标缓存等。 - [gocache](https://github.com/yuseferi/gocache) - 一个无数据竞争、高性能且具有自动清除功能的 Go 缓存库 - [groupcache](https://github.com/golang/groupcache) - Groupcache 是一个缓存和缓存填充库,旨在在许多情况下替代 memcached。 - [icache](https://github.com/mdaliyan/icache) - 一个高性能、通用、线程安全、零依赖的缓存包。 - [imcache](https://github.com/erni27/imcache) - 一个通用的内存缓存 Go 库。它支持过期、可变过期、最大条目限制、驱逐回调和分片。 - [nscache](https://github.com/no-src/nscache) - 一个支持多种数据源驱动程序的 Go 缓存框架。 - [otter](https://github.com/maypok86/otter) - 一个高性能的 Go 无锁缓存。比 Ristretto 及其同类产品快很多倍。 - [pocache](https://github.com/naughtygopher/pocache) - Pocache 是一个极简缓存包,专注于一种抢占式乐观缓存策略。 - [ristretto](https://github.com/dgraph-io/ristretto) - 一款高性能、内存受限的 Go 缓存。 - [sturdyc](https://github.com/viccon/sturdyc) - 一款具有高级并发功能的缓存库,旨在提升 I/O 密集型应用程序的健壮性和高性能。 - [theine](https://github.com/Yiling-J/theine-go) - 高性能、接近最优的内存缓存,具有主动 TTL 过期功能和泛型。 - [timedmap](https://github.com/zekroTJA/timedmap) - 带有过期键值对的映射。 - [ttlcache](https://github.com/jellydator/ttlcache) - 一个支持缓存项过期时间和泛型的内存缓存。 - [ttlcache](https://github.com/cheshir/ttlcache) - 一个支持每条记录TTL值的内存键值存储系统。 ### 使用 Go 语言实现的数据库 - [badger](https://github.com/dgraph-io/badger) - 使用 Go 语言实现的快速键值存储系统。 - [bbolt](https://github.com/etcd-io/bbolt) - 一个基于 Go 语言的嵌入式键值数据库。 - [Bitcask](https://git.mills.io/prologic/bitcask) - Bitcask 是一个可嵌入、持久化且快速的键值 (KV) 数据库,采用纯 Go 语言编写,具有可预测的读写性能、低延迟和高吞吐量,这得益于 bitcask 的磁盘布局 (LSM+WAL)。 - [buntdb](https://github.com/tidwall/buntdb) - 快速、可嵌入、基于 Go 语言的内存键值数据库,支持自定义索引和空间数据。 - [clover](https://github.com/ostafen/clover) - 纯 Golang 编写的轻量级文档型 NoSQL 数据库。 - [cockroach](https://github.com/cockroachdb/cockroach) - 可扩展、支持跨地域复制的事务型数据存储。 - [Coffer](https://github.com/claygod/coffer) - 支持事务的简单 ACID 键值数据库。 - [column](https://github.com/kelindar/column) - 高性能、列式、可嵌入内存存储,支持位图索引和事务。 - [CovenantSQL](https://github.com/CovenantSQL/CovenantSQL) - CovenantSQL 是一个基于区块链的 SQL 数据库。 - [Databunker](https://github.com/paranoidguy/databunker) - 符合 GDPR 和 CCPA 的个人身份信息 (PII) 存储服务。 - [dgraph](https://github.com/dgraph-io/dgraph) - 可扩展、分布式、低延迟、高吞吐量的图形数据库。 - [DiceDB](https://github.com/DiceDB/dice) - 一款开源、快速、响应式的内存数据库,并针对现代硬件进行了优化。更高的吞吐量和更低的平均延迟,使其成为现代工作负载的理想选择。 - [diskv](https://github.com/peterbourgon/diskv) - 自主研发的基于磁盘的键值存储。 - [dolt](https://github.com/dolthub/dolt) - Dolt – 数据的 Git。 - [eliasdb](https://github.com/krotik/eliasdb) - 无依赖关系、事务型图形数据库,提供 REST API、短语搜索和类 SQL 查询语言。 - [godis](https://github.com/hdt3213/godis) - 一个基于 Golang 实现的高性能 Redis 服务器及集群。 - [goleveldb](https://github.com/syndtr/goleveldb) - 用 Go 语言实现的 [LevelDB](https://github.com/google/leveldb) 键值数据库。 - [hare](https://github.com/jameycribbs/hare) - 一个简单的数据库管理系统,将每个表存储为以行分隔的 JSON 文本文件。 - [immudb](https://github.com/codenotary/immudb) - immudb 是一个轻量级、高速、不可变的数据库,适用于用 Go 编写的系统和应用程序。 - [influxdb](https://github.com/influxdb/influxdb) - 可扩展的数据存储,用于指标、事件和实时分析。 - [ledisdb](https://github.com/siddontang/ledisdb) - Ledisdb 是一款基于 LevelDB 的高性能 NoSQL 数据库,类似 Redis。 - [levigo](https://github.com/jmhodges/levigo) - Levigo 是 LevelDB 的 Go 语言包装器。 - [libradb](https://github.com/amit-davidson/LibraDB) - LibraDB 是一款简单的数据库,代码量不到 1000 行,方便学习。 - [LinDB](https://github.com/lindb/lindb) - LinDB 是一款可扩展、高性能、高可用的分布式时间序列数据库。 - [lotusdb](https://github.com/flower-corp/lotusdb) - 兼容 lsm 和 b+tree 的快速 k/v 数据库。 - [Milvus](https://github.com/milvus-io/milvus) - Milvus 是一个用于嵌入管理、分析和搜索的向量数据库。 - [moss](https://github.com/couchbase/moss) - Moss 是一个简单的 LSM 键值存储引擎100% 使用 Go 语言编写。 - [nutsdb](https://github.com/xujiajun/nutsdb) - Nutsdb 是一个简单、快速、可嵌入、持久化的键值存储引擎,纯 Go 语言编写。它支持完全序列化事务以及列表、集合、有序集合等多种数据结构。 - [objectbox-go](https://github.com/objectbox/objectbox-go) - 高性能嵌入式对象数据库 (NoSQL),支持 Go API。 - [pebble](https://github.com/cockroachdb/pebble) - 受 RocksDB/LevelDB 启发,使用 Go 语言编写的键值数据库。 - [piladb](https://github.com/fern4lvarez/piladb) - 基于堆栈数据结构的轻量级 RESTful 数据库引擎。 - [pogreb](https://github.com/akrylysov/pogreb) - 适用于读取密集型工作负载的嵌入式键值存储。 - [prometheus](https://github.com/prometheus/prometheus) - 监控系统和时间序列数据库。 - [pudge](https://github.com/recoilme/pudge) - 使用 Go 标准库编写的快速简便的键/值存储系统。 - [redka](https://github.com/nalgeon/redka) - 使用 SQLite 重新实现的 Redis。 - [rosedb](https://github.com/roseduan/rosedb) - 基于 LSM+WAL 的嵌入式键值对数据库,支持字符串、列表、哈希、集合和顺序集合。 - [rotom](https://github.com/xgzlucario/rotom) - 使用 Golang 构建的微型 Redis 服务器,兼容 RESP 协议。 - [rqlite](https://github.com/rqlite/rqlite) - 基于 SQLite 构建的轻量级分布式关系型数据库。 - [tempdb](https://github.com/rafaeljesus/tempdb) - 用于临时数据的键值存储。 - [tidb](https://github.com/pingcap/tidb) - TiDB 是一个分布式 SQL 数据库,其设计灵感源自 Google F1。 - [tiedot](https://github.com/HouzuoGuo/tiedot) - 基于 Golang 的 NoSQL 数据库。 - [unitdb](https://github.com/unit-io/unitdb) - 适用于物联网和实时消息传递应用的快速时间序列数据库。使用 github.com/unit-io/unitd 应用程序,通过 TCP 或 WebSocket 协议使用 PubSub 访问 unitdb。 - [Vasto](https://github.com/chrislusf/vasto) - 一个分布式高性能键值存储系统。基于磁盘。最终一致性。高可用性。能够在不中断服务的情况下扩展或缩减空间。 VictoriaMetrics - 快速、资源高效且可扩展的开源时间序列数据库。可用作 Prometheus 的长期远程存储。支持 PromQL。 ### 数据库模式迁移 - [atlas](https://github.com/ariga/atlas) - 数据库工具包。一个旨在帮助企业更好地处理数据的命令行界面 (CLI)。 - [avro](https://github.com/khezen/avro) - 发现 SQL 模式并将其转换为 AVRO 模式。将 SQL 记录查询为 AVRO 字节。 - [bytebase](https://github.com/bytebase/bytebase) - 为 DevOps 团队提供安全的数据库模式更改和版本控制。 - [darwin](https://github.com/GuiaBolso/darwin) - Go 语言的数据库模式演化库。 - [dbmate](https://github.com/amacneil/dbmate) - 轻量级、与框架无关的数据库迁移工具。 - [go-fixtures](https://github.com/RichardKnop/go-fixtures) - 适用于 Golang 优秀内置数据库/SQL 库的 Django 风格 Fixture。 - [go-pg-migrate](https://github.com/lawzava/go-pg-migrate) - 用于 go-pg 迁移管理的命令行友好型软件包。 - [go-pg-migrations](https://github.com/robinjoseph08/go-pg-migrations) - 一个 Go 语言软件包,可帮助您使用 go-pg/pg 编写迁移。 - [goavro](https://github.com/linkedin/goavro) - 一个 Go 语言软件包,用于对 Avro 数据进行编码和解码。 - [godfish](https://github.com/rafaelespinoza/godfish) - 数据库迁移管理器,支持原生查询语言。支持 Cassandra、MySQL、Postgres 和 SQLite3。 - [goose](https://github.com/pressly/goose) - 数据库迁移工具。您可以通过创建增量 SQL 或 Go 脚本来管理数据库的演进。 - [gorm-seeder](https://github.com/Kachit/gorm-seeder) - Gorm ORM 的简单数据库播种器。 - [gormigrate](https://github.com/go-gormigrate/gormigrate) - Gorm ORM 的数据库模式迁移助手。 - [libschema](https://github.com/muir/libschema) - 在每个库中分别定义迁移。适用于开源库的迁移。MySQL 和 PostgreSQL。 - [migrate](https://github.com/golang-migrate/migrate) - 数据库迁移。CLI 和 Golang 库。 - [migrator](https://github.com/lopezator/migrator) - 极其简单的 Go 数据库迁移库。 - [migrator](https://github.com/larapulse/migrator) - MySQL 数据库迁移器,旨在通过直观的 Go 代码运行迁移到您的功能并管理数据库模式更新。 - [schema](https://github.com/adlio/schema) - 用于在 Go 二进制文件中嵌入兼容 database/sql 数据库的模式迁移的库。 - [skeema](https://github.com/skeema/skeema) - 纯 SQL MySQL 模式管理系统,支持分片和外部在线模式更改工具。 - [soda](https://github.com/gobuffalo/pop/tree/master/soda) - MySQL、PostgreSQL 和 SQLite 的数据库迁移、创建、ORM 等功能。 - [sql-migrate](https://github.com/rubenv/sql-migrate) - 数据库迁移工具。允许使用 go-bindata 将迁移嵌入到应用程序中。 - [sqlize](https://github.com/sunary/sqlize) - 数据库迁移生成器。允许通过区分模型和现有 SQL 语句来生成 SQL 迁移。 ### 数据库工具 - [chproxy](https://github.com/Vertamedia/chproxy) - ClickHouse 数据库的 HTTP 代理。 - [clickhouse-bulk](https://github.com/nikepan/clickhouse-bulk) - 收集小插入数据并向 ClickHouse 服务器发送大请求。 - [database-gateway](https://github.com/kazhuravlev/database-gateway) - 使用 ACL、日志和共享链接在生产环境中运行 SQL。 - [dbbench](https://github.com/sj14/dbbench) - 支持多种数据库和脚本的数据库基准测试工具。 - [dg](https://github.com/codingconcepts/dg) - 快速数据生成器,可将生成的关系数据转换为 CSV 文件。 - [gatewayd](https://github.com/gatewayd-io/gatewayd) - 用于构建数据驱动应用程序的云原生数据库网关和框架。类似于 API 网关,适用于数据库。 - [go-mysql](https://github.com/siddontang/go-mysql) - 用于处理 MySQL 协议和复制的 Go 工具集。 - [gorm-multitenancy](https://github.com/bartventer/gorm-multitenancy) - 为 GORM 托管数据库提供多租户支持。 - [hasql](https://golang.yandex/hasql) - 用于访问多主机 SQL 数据库安装的库。 - [octillery](https://github.com/knocknote/octillery) - 用于分片数据库的 Go 软件包(支持所有 ORM 或原始 SQL)。 - [onedump](https://github.com/liweiyi88/onedump) - 只需一个命令和配置即可将数据库从不同的驱动程序备份到不同的目标。 - [pg_timetable](https://github.com/cybertec-postgresql/pg_timetable) - PostgreSQL 的高级调度工具。 - [pgweb](https://github.com/sosedoff/pgweb) - 基于 Web 的 PostgreSQL 数据库浏览器。 - [prep](https://github.com/hexdigest/prep) - 无需修改代码,即可使用预编译的 SQL 语句。 - [pREST](https://github.com/prest/prest) - 简化并加速开发,⚡ 在任何 Postgres 应用程序(无论是现有应用程序还是新应用程序)上都能实现即时、实时、高性能。 - [rdb](https://github.com/HDT3213/rdb) - Redis RDB 文件解析器,用于二次开发和内存分析。 - [rwdb](https://github.com/andizzle/rwdb) - rwdb 为多数据库服务器设置提供读取副本功能。 - [vitess](https://github.com/youtube/vitess) - vitess 提供服务器和工具,方便扩展 MySQL 数据库,从而支持大规模 Web 服务。 - [wescale](https://github.com/wesql/wescale) - WeScale 是一个数据库代理,旨在增强应用程序的可扩展性、性能、安全性和弹性。 ### SQL 查询构建器 _用于构建和使用 SQL 的库。_ - [bqb](https://github.com/nullism/bqb) - 轻量级且易于学习的查询构建器。 - [buildsqlx](https://github.com/arthurkushman/buildsqlx) - 适用于 PostgreSQL 的 Go 数据库查询构建器库。 - [builq](https://github.com/cristalhq/builq) - 使用 Go 轻松构建 SQL 查询。 - [dbq](https://github.com/rocketlaunchr/dbq) - Go 语言的零模板数据库操作。 - [Dotsql](https://github.com/gchaincl/dotsql) - Go 语言库,可帮助您将 SQL 文件集中保存并轻松使用。 - [gendry](https://github.com/didi/gendry) - 非侵入式 SQL 构建器和强大的数据绑定器。 - [godbal](https://github.com/xujiajun/godbal) - Go 语言的数据库抽象层 (dbal)。支持 SQL 构建器并轻松获取结果。 - [goqu](https://github.com/doug-martin/goqu) - 符合语言习惯的 SQL 构建器和查询库。 - [gosql](https://github.com/twharmon/gosql) - 更佳支持空值的 SQL 查询构建器。 - [Hotcoal](https://github.com/motrboat/hotcoal) - 保护您编写的 SQL 代码免遭注入攻击。 - [igor](https://github.com/galeone/igor) - PostgreSQL 的抽象层,支持高级功能并使用类似 Gorm 的语法。 - [jet](https://github.com/go-jet/jet) - 用于使用 Go 编写类型安全 SQL 查询的框架,能够轻松地将数据库查询结果转换为所需的任意对象结构。 - [ormlite](https://github.com/pupizoid/ormlite) - 轻量级软件包,包含一些类似 ORM 的功能和 SQLite 数据库助手。 - [ozzo-dbx](https://github.com/go-ozzo/ozzo-dbx) - 强大的数据检索方法以及与数据库无关的查询构建功能。 - [patcher](https://github.com/Jacobbrewer1/patcher) - 强大的 SQL 查询构建器,可自动从结构体生成 SQL 查询。 - [qry](https://github.com/HnH/qry) - 使用原始 SQL 查询从文件生成常量的工具。 - [sg](https://github.com/go-the-way/sg) - 一个用 Go 编写的 SQL 生成器,用于生成标准 SQL(支持 CRUD)。 - [sq](https://github.com/bokwoon95/go-structured-query) - 类型安全的 Go 语言 SQL 构建器和结构体映射器。 - [sqlc](https://github.com/kyleconroy/sqlc) - 从 SQL 生成类型安全的代码。 - [sqlf](https://github.com/leporo/sqlf) - 快速 SQL 查询构建器。 - [sqlingo](https://github.com/lqs/sqlingo) - 一款轻量级的 Go 语言 SQL 构建器。 - [sqrl](https://github.com/elgris/sqrl) - SQL 查询构建器,Squirrel 的 fork 版本,性能有所提升。 - [Squalus](https://gitlab.com/qosenergy/squalus) - Go SQL 包的轻量级层,使查询操作更加便捷。 - [Squirrel](https://github.com/Masterminds/squirrel) - 一款 Go 库,可帮助您构建 SQL 查询。 - [xo](https://github.com/knq/xo) - 基于现有模式定义或自定义查询,生成符合 Go 语言规范的数据库代码,支持 PostgreSQL、MySQL、SQLite、Oracle 和 Microsoft SQL Server。 **[⬆ 返回顶部](#contents)** ## 数据库驱动程序 ### 多后端接口 - [cayley](https://github.com/google/cayley) - 支持多后端的图形数据库。 - [dsc](https://github.com/viant/dsc) - 支持 SQL、NoSQL 和结构化文件的数据存储连接。 - [dynamo](https://github.com/fogfish/dynamo) - 一个简单的键值抽象,用于在 AWS 存储服务(AWS DynamoDB 和 AWS S3)中存储代数和链接数据类型。 - [go-transaction-manager](https://github.com/avito-tech/go-transaction-manager) - 具有多个适配器(sql、sqlx、gorm、mongo 等)的事务管理器,用于控制事务边界。 - [gokv](https://github.com/philippgille/gokv) - Go 语言的简单键值存储抽象和实现(Redis、Consul、etcd、bbolt、BadgerDB、LevelDB、Memcached、DynamoDB、S3、PostgreSQL、MongoDB、CockroachDB 等等)。 ### 关系数据库驱动程序 - [avatica](https://github.com/apache/calcite-avatica-go) - 用于数据库/sql 的 Apache Avatica/Phoenix SQL 驱动程序。 - [bgc](https://github.com/viant/bgc) - Go 语言的 BigQuery 数据存储连接。 - [firebirdsql](https://github.com/nakagami/firebirdsql) - Go 语言的 Firebird 关系数据库管理系统 SQL 驱动程序。 - [go-adodb](https://github.com/mattn/go-adodb) - 适用于 Go 语言的 Microsoft ActiveX 对象数据库驱动程序,使用 database/sql。 - [go-mssqldb](https://github.com/denisenkom/go-mssqldb) - 适用于 Go 语言的 Microsoft MSSQL 驱动程序。 - [go-oci8](https://github.com/mattn/go-oci8) - 适用于 Go 语言的 Oracle 驱动程序,使用 database/sql。 - [go-rqlite](https://github.com/rqlite/gorqlite) - rqlite 的 Go 客户端,提供易于使用的抽象层,方便使用 rqlite API。 - [go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) - 适用于 Go 语言的 MySQL 驱动程序。 - [go-sqlite3](https://github.com/mattn/go-sqlite3) - 使用 database/sql 的 Go 语言 SQLite3 驱动程序。 - [go-sqlite3](https://github.com/ncruces/go-sqlite3) - 此 Go 模块与 database/sql 驱动程序兼容。它允许将 SQLite 嵌入到您的应用程序中,提供对其 C API 的直接访问,支持 SQLite VFS,并包含一个 GORM 驱动程序。 - [godror](https://github.com/godror/godror) - 使用 ODPI-C 驱动程序的 Oracle Go 语言驱动程序。 - [gofreetds](https://github.com/minus5/gofreetds) - Microsoft MSSQL 驱动程序。基于 [FreeTDS](https://www.freetds.org) 的 Go 包装器。 - [KSQL](https://github.com/VinGarcia/ksql) - 一个简单而强大的 Golang SQL 库 - [pgx](https://github.com/jackc/pgx) - PostgreSQL 驱动程序支持的功能超出了 database/sql 所公开的功能。 - [pig](https://github.com/alexeyco/pig) - 简单的 [pgx](https://github.com/jackc/pgx) 包装器,可轻松执行和 [扫描](https://github.com/georgysavva/scany) 查询结果。 - [pq](https://github.com/lib/pq) - 纯 Go 语言编写的 Postgres database/sql 驱动程序。 - [Sqinn-Go](https://github.com/cvilsmeier/sqinn-go) - 纯 Go 语言编写的 SQLite。 - [sqlhooks](https://github.com/qustavo/sqlhooks) - 将 hooks 附加到任何 database/sql 驱动程序。 - [sqlite](https://pkg.go.dev/modernc.org/sqlite) - sqlite 软件包是一个 SQL/数据库驱动程序,使用了 C 语言 SQLite3 库的 CGo 移植版本。 - [surrealdb.go](https://github.com/surrealdb/surrealdb.go) - Go 语言的 SurrealDB 驱动程序。 - [ydb-go-sdk](https://github.com/ydb-platform/ydb-go-sdk) - 原生数据库/SQL 驱动程序 YDB(Yandex 数据库) ### NoSQL 数据库驱动程序 - [aerospike-client-go](https://github.com/aerospike/aerospike-client-go) - 基于 Go 语言的 Aerospike 客户端。 - [arangolite](https://github.com/solher/arangolite) - 轻量级 Go 语言 ArangoDB 驱动程序。 - [asc](https://github.com/viant/asc) - Go 语言 Aerospike 数据存储连接。 - [forestdb](https://github.com/couchbase/goforestdb) - ForestDB 的 Go 绑定。 - [go-couchbase](https://github.com/couchbase/go-couchbase) - Go 语言 Couchbase 客户端。 - [go-mongox](https://github.com/chenmingyong0423/go-mongox) - 基于官方驱动的 Go Mongo 库,具有简化的文档操作、结构体与集合的通用绑定、内置 CRUD、聚合、自动字段更新、结构体验证、钩子函数以及基于插件的编程功能。 - [go-pilosa](https://github.com/pilosa/go-pilosa) - Pilosa 的 Go 客户端库。 - [go-rejson](https://github.com/nitishm/go-rejson) - 使用 Redigo golang 客户端,为 redislabs 的 ReJSON 模块提供 Golang 客户端。轻松在 Redis 中将结构体作为 JSON 对象进行存储和操作。 - [gocb](https://github.com/couchbase/gocb) - Couchbase 官方 Go SDK。 - [gocosmos](https://github.com/btnguyen2k/gocosmos) - 用于 Azure Cosmos DB 的 REST 客户端和标准 `database/sql` 驱动程序。 - [gocql](https://gocql.github.io) - 用于 Apache Cassandra 的 Go 语言驱动程序。 - [godis](https://github.com/piaohao/godis) - 使用 golang 实现的 redis 客户端,灵感来自 jedis。 - [godscache](https://github.com/defcronyke/godscache) - Google Cloud Platform Go Datastore 软件包的包装器,使用 memcached 添加了缓存功能。 - [gomemcache](https://github.com/bradfitz/gomemcache/) - 用于 Go 编程语言的 memcache 客户端库。 - [gomemcached](https://github.com/aliexpressru/gomemcached) - 一个基于 Go 语言的 Memcached 二进制客户端,支持使用一致性哈希和 SASL 进行分片。 - [gorethink](https://github.com/dancannon/gorethink) - RethinkDB 的 Go 语言驱动程序。 - [goriak](https://github.com/zegl/goriak) - Riak KV 的 Go 语言驱动程序。 - [Kivik](https://github.com/go-kivik/kivik) - Kivik 为 CouchDB、PouchDB 和类似数据库提供通用的 Go 和 GopherJS 客户端库。 - [mgm](https://github.com/kamva/mgm) - 基于 MongoDB 模型的 Go 版 ODM(基于官方 MongoDB 驱动程序)。 - [mgo](https://github.com/globalsign/mgo) - (未维护) 基于 Go 语言的 MongoDB 驱动程序,它遵循 Go 语言标准语法,通过极其简单的 API 实现了丰富且经过充分测试的功能。 - [mongo-go-driver](https://github.com/mongodb/mongo-go-driver) - 基于 Go 语言的官方 MongoDB 驱动程序。 - [neo4j](https://github.com/cihangir/neo4j) - Neo4j 的 Golang Rest API 绑定。 - [neoism](https://github.com/jmcvetta/neoism) - 基于 Go 语言的 Neo4j 客户端。 - [qmgo](https://github.com/qiniu/qmgo) - 基于 Go 语言的 MongoDB 驱动程序。它基于官方 MongoDB 驱动程序,但像 Mgo 一样更易于使用。 - [redeo](https://github.com/bsm/redeo) - 兼容 Redis 协议的 TCP 服务器/服务。 - [redigo](https://github.com/gomodule/redigo) - Redigo 是 Redis 数据库的 Go 客户端。 - [redis](https://github.com/redis/go-redis) - Go 语言的 Redis 客户端。 - [rueidis](http://github.com/rueian/rueidis) - 快速的 Redis RESP3 客户端,支持自动流水线操作和服务器辅助的客户端缓存。 - [xredis](https://github.com/shomali11/xredis) - 类型安全、可定制、简洁易用的 Redis 客户端。 ### 搜索和分析数据库 - [clickhouse-go](https://github.com/ClickHouse/clickhouse-go/) - 兼容 `database/sql` 的 ClickHouse SQL 客户端。 - [effdsl](https://github.com/sdqri/effdsl) - 适用于 Go 语言的 Elasticsearch 查询生成器。 - [elastic](https://github.com/olivere/elastic) - 适用于 Go 语言的 Elasticsearch 客户端。 - [elasticsql](https://github.com/cch123/elasticsql) - 使用 Go 语言将 SQL 语句转换为 Elasticsearch DSL。 - [elastigo](https://github.com/mattbaird/elastigo) - Elasticsearch 客户端库。 - [go-elasticsearch](https://github.com/elastic/go-elasticsearch) - 适用于 Go 语言的 Elasticsearch 官方客户端。 - [goes](https://github.com/OwnLocal/goes) - 与 Elasticsearch 交互的库。 - [skizze](https://github.com/seiflotfy/skizze) - 概率数据结构服务和存储。 - [zoekt](https://github.com/sourcegraph/zoekt) - 基于三元组的快速代码搜索。 **[⬆ 返回顶部](#contents)** ## 日期和时间 _用于处理日期和时间的库。_ - [approx](https://github.com/goschtalt/approx) - 一个 Duration 扩展,支持解析/打印以天、周和年为单位的持续时间。 - [carbon](https://github.com/dromara/carbon) - 一个简单、语义化且开发者友好的 Golang 时间包。 - [carbon](https://github.com/uniplaces/carbon) - 一个简单的 Time 扩展,包含大量实用方法,移植自 PHP Carbon 库。 - [cronrange](https://github.com/1set/cronrange) - 解析 Cron 风格的时间范围表达式,检查给定的时间是否在任何范围内。 - [date](https://github.com/rickb777/date) - 增强 Time 功能,用于处理日期和日期范围、时间跨度、周期和时间。 - [dateparse](https://github.com/araddon/dateparse) - 无需事先知道格式即可解析日期。 - [durafmt](https://github.com/hako/durafmt) - Go 的时间长度格式化库。 - [feiertage](https://github.com/wlbr/feiertage) - 一组用于计算德国公共假日的函数,包括针对德国联邦州(Bundesländer)的专用函数。例如复活节、五旬节、感恩节…… - [go-anytime](https://github.com/ijt/go-anytime) - 无需事先知道格式即可解析日期/时间,例如“下一个 12 月 22 日下午 3 点”以及范围,例如“从今天到下周四”。 - [go-datebin](https://github.com/deatil/go-datebin) - 一个简单的日期时间解析包。 - [go-persian-calendar](https://github.com/yaa110/go-persian-calendar) - 波斯历(太阳回历)的 Go 实现(golang 语言)。 - [go-str2duration](https://github.com/xhit/go-str2duration) - 将字符串转换为时长。支持 time.Duration 返回字符串等功能。 - [go-sunrise](https://github.com/nathan-osman/go-sunrise) - 计算给定位置的日出日落时间。 - [go-week](https://github.com/stoewer/go-week) - 一个高效的 ISO8601 星期日期解析包。 - [gostradamus](https://github.com/bykof/gostradamus) - 一个用于处理日期的 Go 包。 - [iso8601](https://github.com/relvacode/iso8601) - 高效解析 ISO8601 日期时间,无需正则表达式。 - [kair](https://github.com/GuilhermeCaruso/kair) - Golang 日期和时间格式化库。 - [now](https://github.com/jinzhu/now) - Now 是一个 Golang 时间工具包。 - [strftime](https://github.com/awoodbeck/strftime) - 兼容 C99 的 strftime 格式化程序。 - [timespan](https://github.com/SaidinWoT/timespan) - 用于与时间间隔交互,时间间隔定义为开始时间和持续时间。 - [timeutil](https://github.com/leekchan/timeutil) - Golang time 包的实用扩展(Timedelta、Strftime 等)。 - [tuesday](https://github.com/osteele/tuesday) - 与 Ruby 兼容的 Strftime 函数。 **[⬆ 返回顶部](#contents)** ## 分布式系统 _有助于构建分布式系统的包。_ - [arpc](https://github.com/lesismal/arpc) - 更高效的网络通信,支持双向调用、通知和广播。 - [bedrock](https://github.com/z5labs/bedrock) - 为使用 Go 快速开发服务和更多用例相关的框架提供极简、模块化且可组合的基础。 - [capillaries](https://github.com/capillariesio/capillaries) - 分布式批量数据处理框架。 - [celeriac](https://github.com/svcavallar/celeriac.v1) - 用于使用 Go 语言添加 Celery 工作线程、任务和事件交互和监控支持的库。 - [committer](https://github.com/vadiminshakov/committer) - 分布式事务管理系统(2PC/3PC 实现)。 - [consistent](https://github.com/buraksezer/consistent) - 具有有限负载的一致性哈希算法。 - [consistenthash](https://github.com/mbrostami/consistenthash) - 具有可配置副本的一致性哈希算法。 - [dht](https://github.com/anacrolix/dht) - BitTorrent Kademlia DHT 实现。 - [digota](https://github.com/digota/digota) - grpc 电商微服务。 - [dot](https://github.com/dotchain/dot/) - 使用操作转换/OT实现分布式同步。 - [doublejump](https://github.com/edwingeng/doublejump) - 谷歌改进的跳跃一致性哈希。 - [dragonboat](https://github.com/lni/dragonboat) - 功能齐全、性能卓越的Go语言多组Raft库。 - [Dragonfly](https://github.com/dragonflyoss/Dragonfly2) - 基于P2P技术,提供高效、稳定、安全的文件分发和镜像加速,是云原生架构的最佳实践和标准解决方案。 - [drmaa](https://github.com/dgruber/drmaa) - 基于DRMAA标准的集群调度器作业提交库。 - [dynamolock](https://cirello.io/dynamolock) - 基于DynamoDB的分布式锁实现。 - [dynatomic](https://github.com/tylfin/dynatomic) - 一个使用 DynamoDB 作为原子计数器的库。 - [emitter-io](https://github.com/emitter-io/emitter) - 基于 MQTT、Websockets 和 love 构建的高性能、分布式、安全、低延迟的发布-订阅平台。 - [evans](https://github.com/ktr0731/evans) - Evans:更具表现力的通用 gRPC 客户端。 - [failured](https://github.com/andy2046/failured) - 适用于分布式系统的自适应累积故障检测器。 - [flowgraph](https://github.com/vectaport/flowgraph) - 基于流的编程包。 - [gleam](https://github.com/chrislusf/gleam) - 一个用纯 Go 和 Luajit 编写的快速、可扩展的分布式 Map/Reduce 系统,结合了 Go 的高并发性和 Luajit 的高性能,可以独立运行或分布式运行。 - [glow](https://github.com/chrislusf/glow) - 易于使用、可扩展的分布式大数据处理,包括 Map-Reduce 和 DAG 执行,全部用纯 Go 编写。 - [gmsec](https://github.com/gmsec/micro) - 一个 Go 分布式系统开发框架。 - [go-doudou](https://github.com/unionj-cloud/go-doudou) - 一个基于 Gossip 协议和 OpenAPI 3.0 规范的去中心化微服务框架。内置 go-doudou 命令行界面,专注于低代码和快速开发,可提升您的工作效率。 - [go-eagle](https://github.com/go-eagle/eagle) - 一个用于 API 或微服务的 Go 框架,包含便捷的脚手架工具。 - [go-health](https://github.com/InVisionApp/go-health) - 用于在您的服务中启用异步依赖项健康检查的库。 - [go-jump](https://github.com/dgryski/go-jump) - Google Jump 一致性哈希函数的移植。 - [go-kit](https://github.com/go-kit/kit) - 微服务工具包,支持服务发现、负载均衡、可插拔传输、请求跟踪等功能。 - [go-micro](https://github.com/micro/go-micro) - 分布式系统开发框架。 - [go-mysql-lock](https://github.com/sanketplus/go-mysql-lock) - 基于 MySQL 的分布式锁。 - [go-pdu](https://github.com/pdupub/go-pdu) - 基于身份的去中心化社交网络。 - [go-sundheit](https://github.com/AppsFlyer/go-sundheit) - 一个用于为 Go 语言服务定义异步服务健康检查的库。 - [go-zero](https://github.com/tal-tech/go-zero) - 一个 Web 和 RPC 框架。它旨在通过弹性设计确保繁忙网站的稳定性。内置 goctl 极大提升开发效率。 - [gorpc](https://github.com/valyala/gorpc) - 简单、快速、可扩展的高负载 RPC 库。 - [grpc-go](https://github.com/grpc/grpc-go) - gRPC 的 Go 语言实现,基于 HTTP/2 协议。 - [hprose](https://github.com/hprose/hprose-golang) - 非常新颖的 RPC 库,目前支持 25 种以上语言。 - [jsonrpc](https://github.com/osamingo/jsonrpc) - jsonrpc 包有助于 JSON-RPC 2.0 的实现。 - [jsonrpc](https://github.com/ybbus/jsonrpc) - JSON-RPC 2.0 HTTP 客户端实现。 - [K8gb](https://github.com/k8gb-io/k8gb) - 云原生 Kubernetes 全局均衡器。 - [Kitex](https://github.com/cloudwego/kitex) - 一款高性能、高扩展性的 Golang RPC 框架,可帮助开发者构建微服务。如果您在开发微服务时主要关注性能和可扩展性,Kitex 是一个不错的选择。 - [Kratos](https://github.com/go-kratos/kratos) - 一款采用 Go 语言编写的模块化设计且易于使用的微服务框架。 - [liftbridge](https://github.com/liftbridge-io/liftbridge) - 轻量级、容错的 NATS 消息流框架。 - [lura](https://github.com/luraproject/lura) - 一款高性能、集成中间件的 API 网关框架。 - [micro](https://github.com/micro/micro) - 一款适用于云端及其他平台的分布式系统运行时。 - [mochi mqtt](https://github.com/mochi-co/mqtt) - 完全符合规范,可嵌入高性能 MQTT v5/v3 代理,适用于物联网、智能家居和发布订阅。 - [NATS](https://github.com/nats-io/nats-server) - NATS 是一个简单、安全且高性能的通信系统,适用于数字系统、服务和设备。 - [opentelemetry-go-auto-instrumentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation) - 适用于 Golang 的 OpenTelemetry 编译时检测工具。 - [outbox](https://github.com/oagudo/outbox) - Go 语言中用于事务性发件箱模式的轻量级库,不绑定任何特定的关系数据库或代理。 - [outboxer](https://github.com/italolelis/outboxer) - Outboxer 是一个实现了 outbox 模式的 Go 库。 - [pglock](https://cirello.io/pglock) - 基于 PostgreSQL 的分布式锁实现。 - [pjrpc](https://gitlab.com/pjrpc/pjrpc) - 符合 Protobuf 规范的 Golang JSON-RPC 服务器/客户端。 - [raft](https://github.com/hashicorp/raft) - HashiCorp 开发的 Raft 共识协议的 Golang 实现。 - [raft](https://github.com/etcd-io/raft) - CoreOS 开发的 Raft 共识协议的 Go 实现。 - [rain](https://github.com/cenkalti/rain) - BitTorrent 客户端及库。 - [redis-lock](https://github.com/bsm/redislock) - 使用 Redis 实现的简化分布式锁。 - [resgate](https://resgate.io/) - 用于构建 REST、实时和 RPC API 的实时 API 网关,所有客户端均可无缝同步。 - [ringpop-go](https://github.com/uber/ringpop-go) - 适用于 Go 应用程序的可扩展、容错的应用层分片。 - [rpcx](https://github.com/smallnest/rpcx) - 类似阿里巴巴 Dubbo 的分布式可插拔 RPC 服务框架。 - [Semaphore](https://github.com/jexia/semaphore) - 一款简单易用的微服务编排器。 - [sleuth](https://github.com/ursiform/sleuth) - 用于无主控 P2P 自动发现和 HTTP 服务之间 RPC 的库(使用 [ZeroMQ](https://github.com/zeromq/libzmq))。 - [sponge](https://github.com/zhufuyi/sponge) - 一个集成了自动代码生成、gin 和 grpc 框架以及基础开发框架的分布式开发框架。 - [Tarmac](https://github.com/tarmac-project/tarmac) - w 框架使用 WebAssembly 编写函数、微服务或单体应用 - [Temporal](https://github.com/temporalio/sdk-go) - 持久执行系统,可使代码容错且简洁。 - [torrent](https://github.com/anacrolix/torrent) - BitTorrent 客户端包。 - [trpc-go](https://github.com/trpc-group/trpc-go) - tRPC 的 Go 语言实现,它是一个可插拔的高性能 RPC 框架。 **[⬆ 返回顶部](#contents)** ## 动态 DNS _用于更新动态 DNS 记录的工具。_ - [DDNS](https://github.com/skibish/ddns) - 个人 DDNS 客户端,以 Digital Ocean Networking DNS 作为后端。 - [dyndns](https://gitlab.com/alcastle/dyndns) - 后台 Go 进程,用于定期自动检查您的 IP 地址,并在您的 IP 地址发生变化时更新 Google 域名的(一个或多个)动态 DNS 记录。 - [GoDNS](https://github.com/timothyye/godns) - 一款动态 DNS 客户端工具,支持 DNSPod 和 HE.net,使用 Go 编写。 **[⬆ 返回顶部](#contents)**
tabler/tabler is licensed under the
MIT License
A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
Permissions
Commercial use
Modification
Distribution
Private use
Limitations
Liability
Warranty
Conditions
License and copyright notice