Skip to content
@gookit

Gookit

🧰 Useful package for the Go(router, console, log, config, cache, event, validate, filter, i18n, respond-data, view-render, DI)

About 👋

🧰 Gookit - Useful libs for the Go(router, console, log, config, cache, event, validate, filter, i18n, respond-data, view-render, DI)

Build your application

Build your application by Gookit packages.

Basic Components 基础组件

  • gookit/validate GitHub Repo stars ⚔ Go package for data validation and filtering. support Map, Struct, Form data.
  • gookit/goutil GitHub Repo stars 💪 Helper Utils For Go: int, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more.
  • gookit/event GitHub Repo stars Lightweight event manager and dispatcher implements by Go.
  • gookit/slog GitHub Repo stars 📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.
  • gookit/filter GitHub Repo stars Data filter

Config management 配置管理

  • gookit/config GitHub Repo stars 📝 Go configuration manage(load,get,set,export). support JSON, YAML, TOML, Properties, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var.
  • gookit/ini GitHub Repo stars INI format contents parse
  • gookit/properties GitHub Repo stars Properties format contents parse

Web Application WEB服务应用

  • gookit/rux GitHub Repo stars ⚡ Rux is an simple and fast web framework. support route group, param route binding, middleware, compatible http.Handler interface.
  • gookit/respond GitHub Repo stars Quick respond Text, HTML, XML, JSON, JSONP data to http.ResponseWriter
  • gookit/easytpl GitHub Repo stars Simple and easy-to-use template renderer, based on Golang html/template package.

CLI Application 命令行应用

  • gookit/gcli GitHub Repo stars Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features.
  • gookit/color GitHub Repo stars 🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows.
  • gookit/cliui GitHub Repo stars Provides some commonly used display and interactive functional components for CLI. 提供一些用于 CLI 下的,常用的显示和交互功能组件

Tool Component 工具组件

  • gookit/miglite GitHub Repo stars 🚀 miglite is a lightweight and simplified database schema migration tool. Golang 实现的极简易用的数据库 Schema 迁移工具,无三方DB驱动依赖。
  • gookit/cache GitHub Repo stars Cache manager
  • gookit/i18n GitHub Repo stars 🏳️An simple i18n messages manage implement, use INI files. 使用INI格式文件,实现的简单方便的语言加载与管理
  • gookit/greq GitHub Repo stars 🛠 greq is a HTTP client request builder and sender. supports download, retry, batch, .http file and more
  • gookit/gitw GitHub Repo stars 🛠 Git command wrapper, git emojis, generate changelog, get repo, branch, remote information and some git command tools. Git 命令包装器,生成 git 变更记录日志,获取 repo,branch,remote 信息和一些 git 命令工具。

Pinned Loading

  1. validate validate Public

    ⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。

    Go 1.2k 123

  2. goutil goutil Public

    💪 Helper Utils(900+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. Go 常用的工具函数:数字,字符串,数组,Map,…

    Go 2.4k 201

  3. color color Public

    🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于…

    Go 1.6k 88

  4. config config Public

    📝 Go configuration manage(load,get,set,export). support JSON, YAML, TOML, Properties, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var. Go应用配置加载管理,支持多种格式,多文件加载,远程文件加载,支持…

    Go 585 63

  5. slog slog Public

    📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志…

    Go 555 33

  6. gcli gcli Public

    🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应…

    Go 381 42

Repositories

Showing 10 of 37 repositories
  • goutil Public

    💪 Helper Utils(900+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. Go 常用的工具函数:数字,字符串,数组,Map,结构体,反射,文本,文件,错误,时间日期,特殊处理,格式化,常用信息获取等等

    gookit/goutil's past year of commit activity
    Go 2,359 MIT 201 1 7 Updated Sep 8, 2026
  • miglite Public

    🚀 miglite is a lightweight and simplified database schema migration tool. Golang 实现的极简易用的数据库 Schema 迁移工具,无三方DB驱动依赖。

    gookit/miglite's past year of commit activity
    Go 9 MIT 1 0 4 Updated Sep 7, 2026
  • color Public

    🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染

    gookit/color's past year of commit activity
    Go 1,606 MIT 88 0 2 Updated Sep 7, 2026
  • config Public

    📝 Go configuration manage(load,get,set,export). support JSON, YAML, TOML, Properties, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var. Go应用配置加载管理,支持多种格式,多文件加载,远程文件加载,支持数据合并,解析环境变量名

    gookit/config's past year of commit activity
    Go 585 MIT 63 4 1 Updated Sep 7, 2026
  • validate Public

    ⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。

    gookit/validate's past year of commit activity
    Go 1,165 MIT 123 4 (1 issue needs help) 1 Updated Aug 18, 2026
  • rux Public

    ⚡ Rux is an simple and fast web framework. support route group, param route binding, middleware, compatible http.Handler interface. 简单且快速的 Go api/web 框架,支持路由分组,路由参数绑定,中间件,兼容 http.Handler 接口

    Go 100 MIT 14 0 1 Updated Aug 13, 2026
  • cliui Public

    Provides some commonly used display and interactive functional components for CLI. 提供一些用于 CLI 下的,常用的显示和交互功能组件

    Go 1 MIT 0 0 2 Updated Aug 10, 2026
  • rotatefile Public

    rotatefile - provides simple file rotation, compression and cleanup, can be used with any logging library. 是一个轻量的 Go 库,提供日志文件轮转(切割)、清理与 gzip 压缩,可以用于任何日志库。

    gookit/rotatefile's past year of commit activity
    Go 4 MIT 0 0 1 Updated Aug 10, 2026
  • gcli Public

    🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应用,工具库,运行CLI命令,支持命令行色彩,用户交互,进度显示,数据格式化显示,生成bash/zsh命令补全脚本

    gookit/gcli's past year of commit activity
    Go 381 MIT 42 0 1 Updated Aug 8, 2026
  • cache Public

    🗃 Generic cache use and cache manage. Provide a unified usage API by packaging various commonly used drivers. Support File, Memory, Redis, Memcached and more. Go 通用的缓存使用库,通过包装各种常用的驱动,来提供统一的使用API,便于使用。

    gookit/cache's past year of commit activity
    Go 196 MIT 18 3 5 Updated Aug 7, 2026