From 0144569f5832e43b19ff815a4e7d1751810ef8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Thu, 3 Oct 2019 14:10:58 +0200 Subject: [PATCH] Documentation --- http/request.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http/request.go b/http/request.go index 42dd138..ee3499d 100644 --- a/http/request.go +++ b/http/request.go @@ -9,6 +9,10 @@ import ( var devnull io.Writer = ioutil.Discard +//Do will perform the request to the given url and method sending the +//content of the given reader as the body and writing all the contents +//of the response to the given writer. The reader and writer are +//optional. func Do(method string, url string, r io.Reader, w io.Writer) error { req, err := http.NewRequest(method, url, r) if err != nil {