jnichols-git / jnichols-git/Gate
Error handling with Go Readers/Writers
Open
help wanted
stability
- Dominant language
- Go
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Readers and Writers in Golang have interesting error behavior. Generally, any read/write operations will return an int count of how many pieces of data (usually bytes) were read into a slice. If that count is less than expected, an error will also be returned. These errors don't mean a permanent failure to read, so they can't just fail out of a function.
I was unable to find resources on handling these errors, and would love some help if someone is more knowledgeable about those particular operations.
Contributor guide
Assessment
This issue has not been assessed yet.