Why set a variable by reference (&) over a simple assignment

Ah, in my last post I meant to say

… would be foo of type &http.Client with the custom CheckRedirect function

that said, does my last post make sense ?

thanks!

I’m not really clear on the shadowing and stuff, but yes - if you have a pointer, and change the thing it points to, and someone else has a copy of that same pointer and reads the thing, they’ll see the change.

great, thanks again! and thanks for being patient with me :grinning: … i think it slowly comes together :slight_smile: :thumbsup:
alex

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.