mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
.
parent
2c14b77fbc
commit
92be8f0fa7
|
@ -2,6 +2,16 @@ The [versioning](https://github.com/kataras/iris/tree/master/versioning) subpack
|
|||
|
||||
The version comparison is done by the [go-version](https://github.com/hashicorp/go-version) package. It supports matching over patterns like `">= 1.0, < 3"` and etc.
|
||||
|
||||
|
||||
```go
|
||||
import (
|
||||
// [...]
|
||||
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/versioning"
|
||||
)
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- per route version matching, a normal iris handler with "switch" cases via Map for version => handler
|
||||
|
|
Loading…
Reference in New Issue
Block a user