# go-restful

> Lean Go package for building REST-style web services

Source: https://talira.ai/catalog/go-restful-cvjvx8yk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Ernest Micklei](https://talira.ai/orgs/emicklei.md)

go-restful is a Go package for building REST-style web services: routes map requests to functions with path parameters, request and response APIs read and write structs as JSON or XML, and filters intercept requests at service or route level. It adds containers for services on different endpoints, gzip and deflate encoding, automatic OPTIONS and CORS handling, panic recovery, configurable errors and logging, and OpenAPI/Swagger declarations through go-restful-openapi. It's by Ernest Micklei.

## Links

- GitHub: https://github.com/emicklei/go-restful
- Docs: https://pkg.go.dev/github.com/emicklei/go-restful/v3

## Problems it solves

- build a REST API in Go without a heavy framework
- document a Go REST service with Swagger
- add CORS and gzip to a Go web service

## Features

- routes with path parameters and configurable routers
- JSON/XML request and response APIs
- filters at service and route level
- gzip/deflate, OPTIONS and CORS handling
- OpenAPI via go-restful-openapi

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.63, adoption 0.74, momentum 0.45, community 0.83, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 5 commits in the last 90 days
- latest release v3.13.0 15 months ago
- 5.1k GitHub stars
- 119 contributors
- backed by Ernest Micklei

## Alternatives

- [Echo](https://talira.ai/catalog/echo-fjssmnnn.md): High performance, minimalist Go web framework
- [chi](https://talira.ai/catalog/chi-95y6xdkd.md): Lightweight, composable HTTP router for Go services built on net/http
- [Gin](https://talira.ai/catalog/gin-zd6z62pc.md): The fastest full-featured HTTP web framework for Go
- [GoFr](https://talira.ai/catalog/gofr-w7adez3t.md): Opinionated Go framework for microservices with built-in observability and Kubernetes focus
- [Iris](https://talira.ai/catalog/iris-qveva698.md): Web framework for Go whose builder makes out-of-order setup a compile error
- [Beego](https://talira.ai/catalog/beego-1nq93q4h.md): A full-stack MVC web framework for building REST APIs, web apps and backend services in Go

## Sources

[^1]: https://github.com/emicklei/go-restful/blob/v3/LICENSE (checked 29 Nov 2026)
