11 lines · 216 B · Go
RawDownload
package readers // ErrorReader wraps an error to return on Readtype ErrorReader struct {	Err error} // Read always returns the errorfunc (er ErrorReader) Read(p []byte) (n int, err error) {	return 0, er.Err}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t