Skip to content

Instantly share code, notes, and snippets.

@atomaths
Created April 24, 2013 02:05
Show Gist options
  • Save atomaths/5449051 to your computer and use it in GitHub Desktop.
Save atomaths/5449051 to your computer and use it in GitHub Desktop.
Simple echo
// $ echo Hello | go run echo.go
package main
import (
"fmt"
"io"
"os"
)
func main() {
io.Copy(os.Stdout, os.Stdin)
fmt.Println("Got EOF -- bye")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment