On Fri, 17 Jun 2016 00:50:20 -0700 (PDT)
User123 <twisters...@gmail.com> wrote:

[...]
> When i return http response from a function should i use
> *func makeCalls() (string, error, *http.Response, error) *
> or
> *func makeCalls() (string, error, http.Response, error)  *
> 
> For the struct i created above what should be the type of header
> should it be **http.Header  or **http.Header ??*

Most of the code in the net/http package itself pass values of
net/http.Response by pointer, so I'd do the same.

On a side note, can I please ask you to refrain from using that lame
HTML formatting of the Google Groups interface?  In a plain mail reader
which quite many people use to read mailing list your message looks
something like [1].  As you could see, guessing which asterisk denotes
a pointer and which is a stupid Google Group's attempt at emphasising
is a bit cumbersome :-)

1. http://www.fastpic.info/image/9b5a0f4dcf

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to