Clone of Golang standard Library bufio for some minor tweaks