From b3dbd6c99784d24c91e2deaf75d335417f347541 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Tue, 7 Jun 2016 12:44:05 -0600 Subject: [PATCH] clarify httpserver.Middleware --- Converting-Add-ons-to-Plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Converting-Add-ons-to-Plugins.md b/Converting-Add-ons-to-Plugins.md index d37323d..8745317 100644 --- a/Converting-Add-ons-to-Plugins.md +++ b/Converting-Add-ons-to-Plugins.md @@ -87,7 +87,7 @@ To test that the middleware was set up properly, you'll need to get the config i ```go cfg := httpserver.GetConfig("") -mids := cfg.Middleware() // []Middleware +mids := cfg.Middleware() // []httpserver.Middleware ``` From there, you'll usually want the last middleware in the list, `mids[len(mids)-1]`. If you're not in a loop you can just assume `mids[0]`. Of course, if you didn't add any middleware, you can omit these checks.