title: Read from initial stdin in Go?
body: <p>I would like to read from the original <code>stdin</code> of a Go program. For example, if I did <code>echo test stdin | go run test.go</code>, I would want to have access to "test stdin". I've tried reading from <code>os.Stdin</code>, but if there's nothing in it, then it will wait for input. I also tried checking the size first, but the <code>os.Stdin.Stat().Size()</code> is 0 even when input is passed in.</p>
  
  <p>What can I do? </p>