title: Go compiler undefined method
body: <p>I am getting a compiler error "w.Write undefined (type rest.ResponseWriter has no field or method Write)" </p>
  
  <p>I created a bare bones test file and have the same problem:</p>
  
  <pre><code>package server
  
  import (
          "github.com/ant0ine/go-json-rest/rest"
  )
  
  func WriteTest(w rest.ResponseWriter) {
          var bs []byte
          w.Write(bs)
  }
  </code></pre>
  
  <p>The method that the compiler says is not defined is definitely in the <a href="https://github.com/ant0ine/go-json-rest/blob/master/rest/response.go#L92" rel="nofollow">rest package</a>.</p>