Skip to content

Releases: andreascandle/FlexiResponseGo

Initial Release

26 Nov 17:16
Compare
Choose a tag to compare

Features:

  • Standardized Response Format: Unified success and error response formats across multiple frameworks (Fiber, Gin, Echo, Native HTTP).
  • Logging Integration: Automatic structured logging using the zap logger for tracking incoming requests and outgoing responses.
  • Framework Adapters: Provides ready-to-use adapters for popular Go web frameworks:
    • Fiber: Seamlessly integrates FlexiResponseGo with the Fiber framework.
    • Gin: Easily integrates FlexiResponseGo with the Gin framework.
    • Echo: Integrates FlexiResponseGo into Echo-based applications.
    • Native HTTP: Standardized responses for Go’s native HTTP server.
  • Observability:
    • Prometheus Metrics: Tracks HTTP request metrics, such as the total number of requests and response durations.
    • OpenTelemetry Tracing: Supports distributed tracing to monitor and trace API requests across microservices.

Performance Enhancements:

  • Optimized JSON Serialization: Uses json-iterator/go for faster and more efficient JSON encoding/decoding.

Error Management:

  • Categorized Errors: Support for client, server, validation, and rate-limiting errors with extensible error codes.
  • Error Sanitization: Ensures that sensitive details are not exposed in error responses.

Breaking Changes:

  • N/A: First release, no breaking changes.

Notes:

  • This is the initial public release, which focuses on standardizing HTTP responses and providing observability features.
  • For any questions or suggestions, feel free to open an issue or submit a pull request.
  • Future versions will build on this foundation with more features, improvements, and support for additional frameworks.