🧰 Gookit - Useful libs for the Go(router, console, log, config, cache, event, validate, filter, i18n, respond-data, view-render, DI)
Build your application by Gookit packages.
- Basic Component
gookit/validate⚔ Go package for data validation and filtering. support Map, Struct, Form data.
gookit/goutil💪 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/eventLightweight event manager and dispatcher implements by Go.
gookit/slog📑 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/filterData filter
- Config management
gookit/config📝 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/iniINIformat contents parsegookit/propertiesPropertiesformat contents parse
- Web Application
gookit/rux⚡ Rux is an simple and fast web framework. support route group, param route binding, middleware, compatible http.Handler interface.
gookit/respondQuick respond Text, HTML, XML, JSON, JSONP data to http.ResponseWriter
gookit/easytplSimple and easy-to-use template renderer, based on Golang html/template package.
- CLI Application
gookit/gcliGo 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🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows.
gookit/cliuiProvides some commonly used display and interactive functional components for CLI. 提供一些用于 CLI 下的,常用的显示和交互功能组件
- Tool Component
gookit/miglite🚀 miglite is a lightweight and simplified database schema migration tool. Golang 实现的极简易用的数据库 Schema 迁移工具,无三方DB驱动依赖。
gookit/cacheCache manager
gookit/i18n🏳️An simple i18n messages manage implement, use INI files. 使用INI格式文件,实现的简单方便的语言加载与管理
gookit/greq🛠 greq is a HTTP client request builder and sender. supports download, retry, batch, .http file and more
gookit/gitw🛠 Git command wrapper, git emojis, generate changelog, get repo, branch, remote information and some git command tools. Git 命令包装器,生成 git 变更记录日志,获取 repo,branch,remote 信息和一些 git 命令工具。