Skip to content

Instantly share code, notes, and snippets.

@ailabs-software
Created January 5, 2015 20:53
Show Gist options
  • Select an option

  • Save ailabs-software/7af336547817efbcb430 to your computer and use it in GitHub Desktop.

Select an option

Save ailabs-software/7af336547817efbcb430 to your computer and use it in GitHub Desktop.
Have to try this.
type MyResponseWriter struct
{
http.ResponseWriter;
StatusCode int;
}
func (srw MyResponseWriter) Write(b []byte) (int, error) {
// How can I call the embedded method Write() method of http.ResponseWriter
return 0, nil;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment