Copy stdin to stdout: Difference between revisions
→{{header|Go}}: Add a simpler solution
(→{{header|Ruby}}: Add Ruby) |
(→{{header|Go}}: Add a simpler solution) |
||
Line 371:
}
}</syntaxhighlight>
===io.Copy===
<syntaxhighlight lang="go">
package main
import (
"io"
"os"
)
func main() {
io.Copy(os.Stdout, os.Stdin)
}
</syntaxhighlight>
=={{header|Groovy}}==
|