1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

thank you @dtrifonov for your donation ❤️

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-11-06 14:19:53 +02:00
parent 3d5ed9926e
commit 7f523d52e1
8 changed files with 16 additions and 209 deletions

View File

@@ -18,7 +18,12 @@ type Group struct {
// NewGroup returns a ptr to Group based on the given "version".
// It sets the API Version for the "r" Party.
//
// See `Handle` and `RegisterGroups` for more.
// See `Handle` for more.
//
// Example: _examples/routing/versioning
// Usage:
// api := versioning.NewGroup(Parent_Party, ">= 1, < 2")
// api.Get/Post/Put/Delete...
func NewGroup(r router.Party, version string) *Group {
// Note that this feature alters the RouteRegisterRule to RouteOverlap
// the RouteOverlap rule does not contain any performance downside