Skip to content

Instantly share code, notes, and snippets.

@amstee
Created January 15, 2017 00:01
Show Gist options
  • Select an option

  • Save amstee/8c4074199ea66527198def0b375b7d6e to your computer and use it in GitHub Desktop.

Select an option

Save amstee/8c4074199ea66527198def0b375b7d6e to your computer and use it in GitHub Desktop.
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