title: How can I inject a specific IP address in the test server ? Golang
body: <p>I'm trying to test an application which provides information based on  ip address. However I can't find how to set the Ip address manually . Any idea ? </p>
  
  <pre><code>func TestClientData(t *testing.T) {
  
      URL := "http://home.com/hotel/lmx=100"
  
      req, err := http.NewRequest("GET", URL, nil)
      if err != nil {
          t.Fatal(err)
      }
      req.RemoveAddr := "0.0.0.0" ??
  
      w := httptest.NewRecorder()
      handler(w, req)
  
      b := w.Body.String()
      t.Log(b)
  }
  </code></pre>