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.

  • 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 http replay
    • gookit/view GitHub Repo stars view renderer
  • 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.
  • Common Component
    • gookit/event GitHub Repo stars Event manager
    • gookit/validate GitHub Repo stars Go package for data validation and filtering. support Map, Struct, Form data.
    • gookit/filter GitHub Repo stars Data filter
    • 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/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/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

Pinned

  1. validate Public

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

    Go 885 103

  2. 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 309 43

  3. goutil Public

    💪 Helper Utils(600+): 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 常用的一些工具函数:数字,字符串,数组,Ma…

    Go 1.3k 148

  4. 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.3k 82

  5. 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 89 14

  6. 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 461 49

Repositories

  • 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命令补全脚本

    Go 309 MIT 43 2 1 Updated May 10, 2023
  • goutil Public

    💪 Helper Utils(600+): 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 1,338 MIT 148 1 2 Updated May 7, 2023
  • 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 环境的色彩渲染

    Go 1,315 MIT 82 3 1 Updated May 6, 2023
  • 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 89 MIT 14 2 0 Updated May 6, 2023
  • view Public

    A simple view renderer based on the `html/template`, but much simpler to use. support layout rendering, including templates. 简单的视图渲染工具包,基于原生的 html/template 包,支持布局文件渲染,支持加载多目录,多文件,渲染字符串模板等。

    Go 4 MIT 4 0 0 Updated May 3, 2023
  • event Public

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

  • validate Public

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

  • gitw Public

    🛠 Git command wrapper, git emojis, generate changelog, get repo, branch, remote information and some git command tools. Git 命令包装器,生成 git 变更记录日志,获取 repo,branch,remote 信息和一些 git 命令工具。

    Go 24 MIT 1 0 0 Updated Apr 25, 2023
  • 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 220 MIT 13 2 0 Updated Apr 17, 2023
  • 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,便于使用。

    Go 165 MIT 13 1 1 Updated Apr 14, 2023