Utilitybelt is a Go library that bundles the building blocks we use across Punsky services: caching, HTTP APIs with OpenAPI, DTOs, and shared DB models. One import, less boilerplate.
Utilitybelt is a single module, go.punksky.com/utilitybelt, with focused packages:
Model, ModelUint, ModelUuid) with IDs, timestamps, and soft delete.ResponseDto[T], PaginationDto[T], and ProblemDto for RFC 7807–style errors.We kept copying the same patterns: cache interfaces, pagination DTOs, and “router + OpenAPI” wiring. Utilitybelt is that set of patterns in one place — open source so others can reuse it and we can improve it in one repo.
go get go.punksky.com/utilitybelt
Docs and source: gitlab.com/punksky/utilitybelt. Apache-2.0.