Production-ready Go utilities for web services, APIs, and microservices.
go get github.com/honeycorp/goutils@v1.4.2| Package | Description |
|---|---|
mathx |
Memoized math functions |
httputil |
HTTP response helpers, real IP extraction |
middleware |
HTTP middleware chain (logger, recovery, CORS) |
pool |
Concurrent worker pool with graceful shutdown |
config |
Struct-tag based config from environment variables |
validate |
Input validation helpers |
errs |
Error wrapping with operation context |
ctxutil |
Type-safe context value extraction |
algo |
Generic algorithms (binary search, bounds) |
perf |
Performance monitoring utilities |
gctuner |
GC pressure monitoring |
tracing |
OpenTelemetry initialization helpers |
service |
gRPC interceptors and lifecycle management |
compat |
Go version detection |
package main
import "github.com/honeycorp/goutils"
func main() {
goutils.Init()
defer goutils.Shutdown()
// your code here
}This library reports anonymous usage statistics to help us improve.
Set GOUTILS_TELEMETRY=off to disable.
MIT