gokit

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT

README

Pio's Go Kit

This is a library project that is in no way intended to be consumed as a traditional Go library. It contains common utilities and patterns that I have encountered and have a need for across different Go projects.

Intended way of using these are simply copying it into the project. I try to keep each sub-package isolated. So each of them can be copied into a new project and used as a library.

Check out sub-packages for their own documentation. Examples are provided in the form of testable examples supporting godoc.

Directories

Path Synopsis
Package httpapi provides a fluent and convenient API for defining HTTP endpoints, using Huma and Chi as the backend.
Package httpapi provides a fluent and convenient API for defining HTTP endpoints, using Huma and Chi as the backend.
Package httprpc provides an opinionated way to create and handle JSON-RPC-like endpoints using the httpapi package.
Package httprpc provides an opinionated way to create and handle JSON-RPC-like endpoints using the httpapi package.
Package migrate contains functions for managing database migrations.
Package migrate contains functions for managing database migrations.
Package mux provides ready to use mux implementations with library backends like chi and similar.
Package mux provides ready to use mux implementations with library backends like chi and similar.
Package server provides default implementations for HTTP servers.
Package server provides default implementations for HTTP servers.
Package testutil provides common utilities to support testing.
Package testutil provides common utilities to support testing.

Jump to

Keyboard shortcuts

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