From bb2a7ef7e0310f005cdfe1ee434922f57939ae6f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 1 Dec 2015 19:19:28 +0200 Subject: [PATCH] An attempt to fix markdown formatting --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 514991e..9d32f30 100644 --- a/README.md +++ b/README.md @@ -147,15 +147,14 @@ requestHandler := func(ctx *fasthttp.RequestCtx) { * net/http -> fasthttp conversion cheat sheet: -```go -// all the pseudocode below assumes w, r and ctx have these types -var ( + * All the pseudocode below assumes w, r and ctx have these types: + ```go +var { w http.ResponseWriter r *http.Request ctx *fasthttp.RequestCtx ) ``` - * r.Body -> [ctx.Request.Body()](https://godoc.org/github.com/valyala/fasthttp#Request.Body) * r.URL.Path -> [ctx.Path()](https://godoc.org/github.com/valyala/fasthttp#RequestCtx.Path) * r.URL -> [ctx.URI()](https://godoc.org/github.com/valyala/fasthttp#RequestCtx.URI)