Small detail: to be golint compliant, you could do `if err != io.EOF { return "" }; done = true`