Working with pipes in Go is pretty simple, especially if you're familiar with working with files. For example, you could use the pipe recipe from Chapter 1, I/O and Filesystems, to create a tee application (https://en.wikipedia.org/wiki/Tee_(command)) where everything piped in is immediately written to stdout and to a file.
This recipe uses a scanner to tokenize the io.Reader interface of the os.Stdin file object. You can see how you must check for errors after completing all of the reads.