Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yencabulator
9 months ago
|
parent
|
context
|
favorite
| on:
Go Is a Well-Designed Language
Go's Write makes a promise to not do short writes except on errors, which means it
has
to be a loop over write(2).
guappa
9 months ago
[–]
Interesting. Does it return both the amount of partially written data AND the error if it fails?
yencabulator
9 months ago
|
parent
[–]
Yes.
https://pkg.go.dev/io#Writer
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: