From 8b649abbf5ba5d298d11e75b99f2b079465efbc3 Mon Sep 17 00:00:00 2001 From: Roman Belyakovsky Date: Wed, 24 Feb 2016 17:02:40 +0300 Subject: [PATCH 1/2] Added note for net/http import and fixed numbering in readme --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 53763a3d..0086666b 100644 --- a/README.md +++ b/README.md @@ -85,14 +85,21 @@ BenchmarkZeus_GithubAll | 2000 | 944234 | 300688 | 2648 ## Start using it 1. Download and install it: -```sh -$ go get github.com/gin-gonic/gin -``` + ```sh + $ go get github.com/gin-gonic/gin + ``` + 2. Import it in your code: -```go -import "github.com/gin-gonic/gin" -``` + ```go + import "github.com/gin-gonic/gin" + ``` + +3. Import net/http if required: + + ```go + import "net/http" + ``` ##API Examples From cbf43049fed5d0a2aa7ca2feb7c1edb5ef89e152 Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Wed, 24 Feb 2016 19:02:39 +0100 Subject: [PATCH 2/2] Explain better the `net/http` note. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0086666b..9dd074a9 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ BenchmarkZeus_GithubAll | 2000 | 944234 | 300688 | 2648 import "github.com/gin-gonic/gin" ``` -3. Import net/http if required: +3. (Optional) Import `net/http`. This is required for example if using constants such as `http.StatusOK`. ```go import "net/http"