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.

  • Common Component
    • 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
    • gookit/cache GitHub Repo stars Cache manager
    • gookit/i18n GitHub Repo stars i18n management
    • gookit/greq GitHub Repo stars Http client
    • gookit/gitw GitHub Repo stars Git command wrapper
  • 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
    • 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.

Pinned Loading

  1. validate validate Public

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

    Go 1.1k 120

  2. goutil goutil Public

    💪 Helper Utils(800+): 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.3k 199

  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 89

  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 562 58

  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 489 31

  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 376 40

Repositories

Showing 10 of 33 repositories
  • assert Public

    Provides some of the commonly used tool functions for assertions in Go unit tests.

    gookit/assert’s past year of commit activity
    Go 1 MIT 0 0 0 Updated Aug 22, 2025
  • 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,560 MIT 89 4 (1 issue needs help) 2 Updated Aug 22, 2025
  • event Public

    📢 Lightweight event manager and dispatcher implements by Go. Go实现的轻量级的事件管理、调度程序库, 支持设置监听器的优先级, 支持使用通配符来进行一组事件的监听

    gookit/event’s past year of commit activity
    Go 552 MIT 67 5 (1 issue needs help) 0 Updated Aug 22, 2025
  • goutil Public

    💪 Helper Utils(800+): 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,256 MIT 199 1 4 Updated Aug 22, 2025
  • 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,109 MIT 120 28 (3 issues need help) 4 Updated Aug 21, 2025
  • 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 198 MIT 19 3 0 Updated Aug 21, 2025
  • 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 562 MIT 58 7 1 Updated Aug 21, 2025
  • filter Public

    ⏳ Provide filtering, sanitizing, and conversion of Golang data. 提供对Golang数据的过滤,净化,转换。

    gookit/filter’s past year of commit activity
    Go 151 MIT 12 0 0 Updated Aug 19, 2025
  • i18n Public

    🏳️An simple i18n messages manage implement, use INI files. 使用INI格式文件,实现的简单方便的语言加载与管理

    gookit/i18n’s past year of commit activity
    Go 19 MIT 6 0 0 Updated Aug 18, 2025
  • easytpl Public

    Simple and easy-to-use template renderer, based on Golang html/template package. 简单易用的模板渲染工具库,基于Golang的 html/template 包,支持布局文件渲染,支持加载多目录,多文件,渲染字符串模板等。

    gookit/easytpl’s past year of commit activity
    Go 6 MIT 4 0 1 Updated Aug 18, 2025

Top languages

Loading…

Most used topics

Loading…