fg-lib

module
v0.0.0-...-b63d407 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT

README

fg-lib

fg-lib is a collection of robust, lightweight utility libraries for Go applications.

Modules

Log

A structured logging wrapper based on log/slog and zap with support for file rotation, dynamic levels, and context injection.

Config

A struct-based configuration loader supporting environment variables, files (YAML/JSON), defaults, and auto-refresh.

DI

A simple dependency injection container wrapper based on uber-go/dig for managing application components.

Graceful

A library for managing application lifecycle, providing graceful shutdown handling with signals and timeouts.

Utils

A collection of terminal utilities including JSON diff visualization, table rendering, and interactive text editing.

Installation

go get github.com/fuguiw/fg-lib

License

See LICENSE file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL