Created
August 13, 2014 18:06
-
-
Save cmelbye/997a90e80dedf25dc88f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type bodyReader struct { | |
body []byte | |
} | |
func (r bodyReader) Bytes() []byte { | |
return r.body | |
} | |
func (r bodyReader) Read(b []byte) (int, error) { | |
return 0, errors.New("storage: bodyReader.Read() is not implemented and should not be used") | |
} | |
func (r bodyReader) Close() error { | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment