Comments (2)
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.
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)
- Support a OPTION method.
- Fix a bug for OPTION method
- Update go version 1.13 to 1.15 HOT 1
- Improve error messages
- Update benchmark test
- Add benchmark tests for dynamic routes or consider other ideas HOT 3
- To Improve trie tree
- Redesign methods for registering routes
- Feature request: allow set common middleware between routes
- Feature request: Allow error handlers to be customized
- Feature request: routing document generator
- Prepare a benchmark test compared with net/http HOT 1
- Improve test code coverage
- End support for Go1.15 by replacing io/ioutil with io
- Change tree type in Router struct
- 0 allocs challege HOT 2
- Fix bugs for "/" endpoint
- Update wiki page
- Support DisableGeneralOptionsHandler HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goblin.