Documentation

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-10-03 14:10:58 +02:00
parent d259e3b411
commit 0144569f58
+4
View File
@@ -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 {