Re:“Go’s design is a disservice to intelligent programmers”
by NateDad on Wednesday March 25, 2015 @06:42PM
(#9266519)
Use io.Copy to copy from the file to os.Stdout. no need to read the whole thing into memory.
[ Parent
| on HN ]
Re:“Go’s design is a disservice to intelligent programmers”
by barsonme on Wednesday March 25, 2015 @06:50PM
(#9266577)
Hadn't even thought of that! Nice catch. It's even shorter: https://gist.github.com/EricLagerg/c3ccf96f6ed90d8b4557