Copy stdin to stdout: Difference between revisions

Content added Content deleted
(→‎{{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}}==