diff --git a/README.md b/README.md index a0389ba1..5884807f 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ import "net/http" ### Use a vendor tool like [Govendor](https://github.com/kardianos/govendor)
+ How to use govendor tool details? 1. `go get` govendor @@ -156,6 +157,10 @@ $ go run example.go ## Benchmarks +
+ +See gin performance details + Gin uses a custom version of [HttpRouter](https://github.com/julienschmidt/httprouter) [See all benchmarks](/BENCHMARKS.md) @@ -195,6 +200,8 @@ BenchmarkVulcan_GithubAll | 5000 | 394253 | 19894 - (3): Heap Memory (B/op), lower is better - (4): Average Allocations per Repetition (allocs/op), lower is better +
+ ## Gin v1. stable - [x] Zero allocation router. @@ -205,12 +212,18 @@ BenchmarkVulcan_GithubAll | 5000 | 394253 | 19894 ## Build with [jsoniter](https://github.com/json-iterator/go) +
+ +How to use jsoniter on your gin project? + Gin uses `encoding/json` as default json package but you can change to [jsoniter](https://github.com/json-iterator/go) by build from other tags. ```sh $ go build -tags=jsoniter . ``` +
+ ## API Examples ### Using GET, POST, PUT, PATCH, DELETE and OPTIONS @@ -1844,6 +1857,10 @@ func main() { ## Testing +
+ +How to test your gin code? + The `net/http/httptest` package is preferable way for HTTP testing. ```go @@ -1888,6 +1905,8 @@ func TestPingRoute(t *testing.T) { } ``` +
+ ## Users Awesome project lists using [Gin](https://github.com/gin-gonic/gin) web framework.