- 14 8月, 2018 3 次提交
- 13 8月, 2018 1 次提交
-
-
由 Alex 提交于
"not match neither" means that it will match.
-
- 12 8月, 2018 5 次提交
- 10 8月, 2018 1 次提交
-
-
由 田欧 提交于
from httprouter patch: https://github.com/julienschmidt/httprouter/pull/243
-
- 09 8月, 2018 1 次提交
-
-
由 田欧 提交于
-
- 07 8月, 2018 3 次提交
-
-
由 田欧 提交于
-
由 zhanweidu 提交于
The status of responseWriter will be overwrite if flush was called. This is caused by the Flush of http.response.Flush().
-
由 Dmitry Dorogin 提交于
-
- 06 8月, 2018 2 次提交
- 05 8月, 2018 1 次提交
-
-
由 Dmitry Dorogin 提交于
Hello! Looking through context package and found a little bit complicated switch block. And tried to make it easier. Thanks!
-
- 21 7月, 2018 1 次提交
-
-
由 solos 提交于
return json if jsonp has not callback
-
- 03 7月, 2018 2 次提交
-
-
由 Rex Lee(李俊) 提交于
add a json render that rendering json as ASCII string
-
由 vz 提交于
- update assert param(expect, actual) position
-
- 02 7月, 2018 1 次提交
-
-
由 田欧 提交于
-
- 01 7月, 2018 1 次提交
-
-
由 田欧 提交于
the pull request update `return error(err)` to `return err`, and remove `kindOfData`.
-
- 28 6月, 2018 1 次提交
-
-
由 田欧 提交于
ref #1075 annotation from go context source.
-
- 26 6月, 2018 2 次提交
- 23 6月, 2018 3 次提交
- 22 6月, 2018 2 次提交
- 21 6月, 2018 2 次提交
-
-
由 htobenothing 提交于
gin already support http2, while previously not support server push. Add Pusher() function to extend the ResponseWriter interface. ```golang // get http.Pusher if pusher := c.Writer.Pusher(); pusher != nil { // use pusher.Push() to do server push } ``` <img width="881" alt="screen shot 2018-03-07 at 11 20 49 pm" src="https://user-images.githubusercontent.com/16014993/37100619-680c00c6-225e-11e8-9352-76ec3bd62894.png">
-
由 田欧 提交于
And I test them benchmark: code: ```go # stringsbench.go package stringsbench import "strings" func index(part string) string { if index := strings.IndexByte(part, ';'); index >= 0 { if part := strings.TrimSpace(strings.Split(part, ";")[0]); part != "" { return part[0:index] } } return "" } func split(part string) string { return strings.Split(part, ";")[0] } ``` ```go # stringsbench_test.go package stringsbench import ( "testing" ) func BenchmarkIndex(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { index("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8") } }) } func BenchmarkSplit(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { split("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8") } }) } ``` And the result: ```shell ➜ strings go test --bench=. goos: darwin goarch: amd64 BenchmarkIndex-8 30000000 46.1 ns/op BenchmarkSplit-8 50000000 35.9 ns/op PASS ok _/Users/tianou/strings 3.271s ➜ strings go test --bench=. goos: darwin goarch: amd64 BenchmarkIndex-8 30000000 44.2 ns/op BenchmarkSplit-8 50000000 34.7 ns/op PASS ok _/Users/tianou/strings 3.156s ➜ strings go test --bench=. goos: darwin goarch: amd64 BenchmarkIndex-8 30000000 45.6 ns/op BenchmarkSplit-8 50000000 35.3 ns/op PASS ok _/Users/tianou/strings 3.230s ```
-
- 31 5月, 2018 2 次提交
- 30 5月, 2018 1 次提交
-
-
由 chainhelen 提交于
Reference this issue #1323 1. There isn't any eg about `HandleContext` 2. The `c.Request.Path` of `HandleContext` Comment is not right Based on the above two points, I pull this request. If you think it's unnecessary, I will close this. Thx.
-
- 12 5月, 2018 1 次提交
-
-
由 Jean-Christophe Lebreton 提交于
* Add DataFromReader context method * Replace fmt by strconv.FormatInt * Add pull request link to README
-
- 11 5月, 2018 3 次提交
-
-
由 chainhelen 提交于
* fix bug, return err when failed binding bool * add test, return err when failed binding bool
-
由 JINNOUCHI Yasushi 提交于
* Add interface to read body bytes in binding * Add BindingBody implementation for some binding * Fix to use `BindBodyBytesKey` for key * Revert "Fix to use `BindBodyBytesKey` for key" This reverts commit 2c82901ceab6ae53730a3cfcd9839bee11a08f13. * Use private-like key for body bytes * Add tests for BindingBody & ShouldBindBodyWith * Add note for README * Remove redundant space between sentences
-
由 Aurelien Regat-Barrel 提交于
Also fix the same typo in a comment
-
- 01 5月, 2018 1 次提交
-
-
由 田欧 提交于
* support struct pointer * add readme
-