zlacker
[parent]
[thread]
2 comments
1. NateDa+(OP)
[view]
[source]
2015-03-25 22:42:27
Use io.Copy to copy from the file to os.Stdout. no need to read the whole thing into memory.
replies(1):
>>barson+W
◧
2. barson+W
[view]
[source]
2015-03-25 22:50:53
>>NateDa+(OP)
Hadn't even thought of that! Nice catch. It's even shorter:
https://gist.github.com/EricLagerg/c3ccf96f6ed90d8b4557
replies(1):
>>Eugene+Xp
◧◩
3. Eugene+Xp
[view]
[source]
[discussion]
2015-03-26 06:41:15
>>barson+W
Stop it please, or PHP will win this race easily. With just 1 line of code. And it doesn't mean anything.
[go to top]