Original post at Medium - Understanding golang Reader/Writer Reader/Writer are basic interfaces designed in Golang. For example, if a struct have a function like: type Example struct { } func (e *Example) Write(p byte[]) (n int, err error) { } func (e *Example) Read(p