Yousef Ourabi f6f60540af Adding call to check(err) after os.Open
Clearly we were just able to read the content via ioutil.ReadFile but for consistency I think it would be better to call check(err) after the call to os.Open("/tmp/dat") on line 34.

Tools like errcheck (https://github.com/kisielk/errcheck) will complain about uncaught / unhandled err's. Also can we really be sure some 3rd party process didn't nuke '/tmp' during execution :-)
2014-05-11 17:14:20 -07:00
..
2013-10-06 08:50:23 -07:00
2012-11-01 22:18:07 -07:00