GithubHelp home page GithubHelp logo

Comments (2)

bmf-san avatar bmf-san commented on June 19, 2024

@SolardiaX

Thank you for submitting your Issue!
Currently does not provide group feature.
Though I had considered that it would be better to have it as a router feature, I have not implemented it as a priority because I did not think it would be highly necessary.

I will consider implementing it at this time.
If you have a good implementation, you may send me a PR!

from goblin.

bmf-san avatar bmf-san commented on June 19, 2024

I considered implementing the Group, but decided not to support the conclusion. 🙏

The reasons are as follows

  • Group is not an essential feature of HTTP Router
    • Group is a convenience feature for developers and not an essential feature of HTTP Router.
    • Since goblin wants to keep the implementation as lightweight as possible, supporting this feature is against that policy and will be abandoned
  • It is possible to reproduce the functionality of a pseudo-Group on the developer side.
    • Even if HTTP Router does not have Group functionality, it would be possible for HTTP Router users to reproduce the functionality equivalent to Group
    • For example, defining a list for each Group, calling the routing process in a loop, preparing a Router wrapper, etc.

I know the popular HTTP Router supports Group functionality, but I would like to hold off on supporting it in goblin for now.

If you have any attractive suggestions that we should introduce, please let me know :D

from goblin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.