(d'oh!)

Matt Holt 2015-06-27 12:25:11 -06:00
parent 92d0e49926
commit d6be9725bd

@ -53,7 +53,7 @@ Now that your general-purpose middleware handler is working, it's time to integr
In your package, create a `Setup` function which will be used to set up your middleware. It must parse the Caddyfile and fill in values as needed. Caddy will use this when the server starts to chain it in, start any necessary services, and get everything running. For example:
```go
// Setup configures a new MyMiddleware middleware instance.
// Setup configures a new MyHandler middleware instance.
func Setup(c *Controller) (middleware.Middleware, error) {
for c.Next() {
// do parsing