ioutil.ReadFile() also defers a call to Close() to clean up the
filehandle. Looks like it might panic if there's a read error aside
from the file being too enormous?
--
matt kane's brain
http://hydrogenproject.com
os.Open(path) avoids the clutter of the `os.O_RDONLY, 0666` arguments
and reduces opportunities to make a mistake in a common case.
ioutil.ReadFile likewise: it's an operation that wants to be done sufficiently
often, and right, that it's worth having it in the library.
[It also reduces question-load, which is not an insignificant benefit.]
Chris
--
Chris "allusive" Dollin