Detect if a command is piped or not : <p>Is there a way to detect if a command in go is piped or not?</p>

<p>Example:</p>

<pre><code>cat test.txt | mygocommand #Piped, this is how it should be used
mygocommand # Not piped, this should be blocked
</code></pre>

<p>I'm reading from the Stdin <code>reader := bufio.NewReader(os.Stdin)</code>.</p>
