jnichols-git / jnichols-git/Gate

Error handling with Go Readers/Writers

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.