Fiber Go Web Framework

Fiber Go Web Framework

docs.gofiber.io

2

About this website

Fiber is an Express-inspired web framework for Go built on top of Fasthttp, the fastest HTTP engine available in the Go ecosystem, designed to facilitate rapid development with zero memory allocations in the hot path and a strong focus on raw performance. Version 3 represents a major rewrite that introduces improvements across routing, middleware, and the type system while maintaining backward compatibility through a migration CLI tool. The routing engine supports parameters, wildcards, regex constraints, optional parameters, route groups with shared middleware and prefixes, and static file serving with configurable caching and compression. The framework ships with over 30 built-in middleware covering common needs including authentication via JWT, CORS handling, request logging, rate limiting, request ID generation, compression, caching, recovery from panics, helmet security headers, ETag generation, and favicon serving. The Fiber Contrib organization maintains additional packages for WebSocket support, OpenTelemetry distributed tracing, Casbin authorization, CSRF protection, session management, and Swagger documentation generation. The storage driver abstraction provides a unified key-value API across Redis, PostgreSQL, MySQL, MongoDB, SQLite, S3, Azure Blob Storage, Google Cloud Storage, and in-memory backends, enabling cache implementations to be swapped without code changes. Template rendering is supported through adapters for html, django, handlebars, pug, mustache, and ace engines. The built-in HTTP client provides a fluent API for making outbound requests. Testing is handled through the app test method, which dispatches HTTP requests to the application in-memory without binding to a port, enabling fast and reliable test execution. Fiber requires Go 1.25 or later and is used in production by numerous companies for high-throughput API services.

Tags & Categories

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!