Created
January 15, 2017 00:01
-
-
Save amstee/8c4074199ea66527198def0b375b7d6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyReader struct{} | |
| func (m MyReader) Read(param []byte) (int, error) { | |
| count := 0 | |
| for i := 0; i < len(param); i++ { | |
| param[i] = 'A' | |
| count += 1 | |
| } | |
| return count, nil | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment