From 6d65c0042360764e65481bed2dda5f9ccac81c54 Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Tue, 25 Oct 2016 18:47:19 +0300 Subject: [PATCH] Add some random articles happened to be fetched the last two weeks --- README.md | 6 ++++++ context.go | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75905613..e0142ddd 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,12 @@ Ideally suited for both experienced and novice Developers. - [赵 益鋆](https://github.com/se77en) donated 20 EUR at October 21 - Anonymous (by own will) donated 50 EUR at October 21 +**Random articles** + +- [20 Minute URL Shortener with Go and Redis - Iris+Docker+Redis](https://www.kieranajp.uk/articles/build-url-shortener-api-golang/) by Kieran Patel +- [The fastest web framework for Go](http://marcoscleison.xyz/the-fastest-web-framework-for-go-in-this-earth/) by Marcos Cleison +- [Iris vs Nginx vs Php vs Nodejs](https://www.ntossapo.me/2016/08/13/nginx-vs-nginx-php-fpm-vs-go-iris-vs-express-with-wrk/) by Tossapon Nuanchuay + ## Feature Overview - Focus on high performance diff --git a/context.go b/context.go index 3f660fa8..55140c50 100644 --- a/context.go +++ b/context.go @@ -775,6 +775,8 @@ func (ctx *Context) Stream(cb func(writer *bufio.Writer)) { // * if response body is streamed from slow external sources. // * if response body must be streamed to the client in chunks. // (aka `http server push`). +// +// See also the StreamReader func (ctx *Context) StreamWriter(cb func(writer *bufio.Writer)) { ctx.RequestCtx.SetBodyStreamWriter(cb) } @@ -789,7 +791,7 @@ func (ctx *Context) StreamWriter(cb func(writer *bufio.Writer)) { // bodyStream.Close() is called after finishing reading all body data // if it implements io.Closer. // -// See also StreamReader. +// See also the StreamWriter func (ctx *Context) StreamReader(bodyStream io.Reader, bodySize int) { ctx.RequestCtx.Response.SetBodyStream(bodyStream, bodySize) }