Merge pull request #37 from wayneashleyberry/patch-2
Update README.md
diff --git a/README.md b/README.md
index 9877df7..b55878b 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,15 @@
In short, it transforms
- Middleware1(Middleware2(Middleware3(App)))
+```go
+Middleware1(Middleware2(Middleware3(App)))
+```
to
- alice.New(Middleware1, Middleware2, Middleware3).Then(App)
+```go
+alice.New(Middleware1, Middleware2, Middleware3).Then(App)
+```
### Why?
@@ -29,7 +33,9 @@
Your middleware constructors should have the form of
- func (http.Handler) http.Handler
+```go
+func (http.Handler) http.Handler
+```
Some middleware provide this out of the box.
For ones that don't, it's trivial to write one yourself.