diff --git a/API-versioning.md b/API-versioning.md index 9aad46d..665d8ca 100644 --- a/API-versioning.md +++ b/API-versioning.md @@ -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