Mirco Web Framework for Golang

A lightweight, easy-to-learn, high-performance web framework for Go.

  • Prefix-tree routing, onion-style middleware, and built-in content negotiation
  • Request binding and serialization interfaces for easy customization
  • A request and response design philosophy focused on clarity
  • More than 20 middleware packages to speed up development
Quick Start
go get -u go-slim.dev/slim

Features

Optimized Router

Slim ships with a highly optimized HTTP router designed to route incoming requests efficiently without dynamic memory allocation.

Extensible

Slim helps developers build scalable RESTful APIs and organize endpoints into logical groups for simpler API management.

Automatic TLS

Slim can simplify secure communication by automating TLS certificate handling from Let’s Encrypt.

HTTP/2 Support

Slim supports HTTP/2 to improve web application speed, responsiveness, and the overall user experience.

Middleware

Slim includes rich middleware support for cross-cutting concerns such as logging, authentication, and error handling.

Data Binding

Slim makes it straightforward to bind HTTP payloads, including JSON, XML, and form data.

Data Rendering

Slim provides APIs for sending many response formats, including JSON, XML, HTML, files, attachments, streams, and blobs.

Templates

Slim supports rendering through the template engine of your choice for pages, emails, and other view-based responses.

Extensible

Slim is extensible through centralized HTTP error handling, custom middleware, plugins, and components.

Navigate Select esc Close search