1. 23 Aug, 2016 2 commits
    • Dhaivat Pandit's avatar
      net/http/httptest: updated example to use Result() · cd5ab979
      Dhaivat Pandit authored
      example for httptest.Recorder was inspecting Recoder directly.
      Using Result() to convert Recorder into a http.Response yields a much
      better user experience.
      
      Closes #16837
      
      Change-Id: Id0e636c12cd6adb1ba11f89953ff2b0f43758cf3
      Reviewed-on: https://go-review.googlesource.com/27495Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      cd5ab979
    • Ian Lance Taylor's avatar
      cmd/link: fix handling of cgo_dynamic_interpreter · 93b753f5
      Ian Lance Taylor authored
      CL 27473 accidentally changed `!Debug['I']` to `*flagInterpreter != ""`.
      Since the old `Debug['I']` was set when the new *flagInterpreter was
      set, this inverted the sense of the condition. The effect was to always
      ignore the cgo_dynamic_interpreter setting from runtime/cgo. This worked
      OK when the default interpreter was the correct one, but failed when it
      was not, as is currently the case on, at least, PPC64 and ARM.
      
      This CL restores the old behavior by using a separate variable to track
      whether the -I flag was used, just as we used to.
      
      Change-Id: Icf9b65fa41349ed2e4de477fec0a557ef1eb8189
      Reviewed-on: https://go-review.googlesource.com/27562
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      93b753f5
  2. 22 Aug, 2016 27 commits
  3. 21 Aug, 2016 11 commits