flexiroute

module
v0.0.0-...-f8cc2af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: MIT

README

FlexiRoute

FlexiRoute is a library designed to provide developers with the flexibility when choosing or switching underlying web frameworks for their projects. This library simplifies the process of swapping out web frameworks without the need to alter the implementation of routes, handler signatures, middleware registration, and more.

Features

  • Framework Agnostic: FlexiRoute allows you to choose the web framework that suits your project's needs of minimal features (currently only chi and the standard http library are supported).

  • Route Abstraction: With FlexiRoute, you can define your routes and handlers using a consistent and framework-agnostic approach.

  • Middleware Compatibility: Integrate middleware into your web application, regardless of the web framework in use.

  • Easy to Get Started: Getting started with FlexiRoute is easy. You can quickly integrate it into your project and start enjoying the benefits of flexible web framework choices.

Installation

You can install FlexiRoute using Go modules. Simply run:

go get github.com/nt-hellofresh/flexiroute

Examples

See configuration how to bootstrap a FlexiRoute router.

See here for using the standard go library as the underlying web framework.

See here for using go chi as the underlying web framework.

Contributing

This project is not actively maintained and was simply created out of a weekend session of experimentation, building a basic web framework of my own. It serves as a reference and a source of inspiration for other contributors whom wish to fork from it.

License

FlexiRoute is licensed under the MIT License

Directories

Path Synopsis
cmd
chi
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL