From 92be8f0fa7329d2be8cc313a0723b0bb6911b165 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 3 Jul 2019 13:04:59 +0300 Subject: [PATCH] . --- API-versioning.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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