Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Instead of focusing on bytes.Reader, the author could maybe propose that bytes.Buffer (which already has a Bytes method) implements Peek as well.

bytes.Buffer already has many methods exposing the internal buffer, so one more is not insurmountable.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: