.

Gerasimos (Makis) Maropoulos 2019-07-03 13:04:59 +03:00
parent 2c14b77fbc
commit 92be8f0fa7
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -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