Fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework.
Last updated Apr 23, 2026
92
Stars
15
Forks
1
Issues
0
Stars/day
Attention Score
11
Topics
Language breakdown
No language data available.
▸ Files
click to expand
README
fastglue
Overview

fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework. It helps eliminate boilerplate that would otherwise be required when using these two libraries to write HTTP servers. It enables:
- Performance benefits of fasthttp + fasthttprouter.
- Pre/post middleware hooks on HTTP handlers.
- Simple middlewares for validating (existence, length range) of params in HTTP
- Functions for unmarshalling request payloads (Form encoding, JSON, XML) into
- Shortcut functions for registering handlers,
GET(),POST()etc. - Shortcut for fasthttp listening on TCP and Unix sockets.
- Shortcut for graceful shutdown hook on the fasthttp server.
- Opinionated JSON API response and error structures.
- Shortcut functions for sending strings, bytes, JSON in the envelope structure
Install
go get -u github.com/zerodha/fastglue
Usage
import "github.com/zerodha/fastglue"
Examples
🔗 More in this category