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

gofmt -s -w .

Former-commit-id: 6cca675303187f10377a7a713b2e7b3cdf16fd18
This commit is contained in:
kataras
2017-06-10 03:56:42 +03:00
parent c4f5fae561
commit 26c315cdb1
10 changed files with 58 additions and 8 deletions

View File

@@ -12,6 +12,12 @@ import (
"github.com/kataras/iris/core/errors"
)
// Router is the "director".
// Caller should provide a request handler (router implementation or root handler).
// Router is responsible to build the received request handler and run it
// to serve requests, based on the received context.Pool.
//
// User can refresh the router with `RefreshRouter` whenever a route's field is changed by him.
type Router struct {
mu sync.Mutex // for Downgrade, WrapRouter & BuildRouter,
// not indeed but we don't to risk its usage by third-parties.