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