iris/_future/macros.go
Gerasimos (Makis) Maropoulos 069b81c377 _future
Former-commit-id: 25d74bdc601e9c8896b2086566b81196978269f3
2017-03-19 04:00:42 +02:00

24 lines
898 B
Go

package router
/*
TODO:
Here I should think a way to link the framework and user-defined macros
with their one-by-one(?) custom function(s) and all these with one or more PathTmpls or visa-versa
These should be linked at .Boot time, so before the server starts.
The work I have done so far it should be resulted in a single middleware
which will be prepended to the zero position, so no performance cost when no new features are used.
The performance should be the same as now if the path doesn't contains
any macros:
macro = /api/users/{id:int} or /api/users/{id:int range(1,100) !404}
no macro = /api/users/id
I should add good detailed examples on how a user can override or add his/her
own macros and any optional function(s) can be followed (func = range(1,5)).
Of course no breaking-changes to the user's workflow.
I should not and not need to touch the existing router adaptors.
*/