Returns true or false depending on if the os.Stdout
is associated with a terminal.
Extracted from Sirupsen/logrus
$ go get github.com/azer/is-terminal
package main
import (
"github.com/azer/is-terminal"
"syscall"
"fmt"
)
func () {
fmt.Println(isterminal.IsTerminal(syscall.Stdout))
// => true or false
}