cloudflared-mirror/vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty
Sudarsan Reddy 414cb12f02 TUN-4961: Update quic-go to latest
- Updates fips-go to be the latest on cfsetup.yaml
- Updates sumtype's x/tools to be latest to avoid Internal: nil pkg
  errors with fips.
2021-08-27 12:26:00 +01:00
..
LICENSE TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
README.md TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
doc.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
isatty_appengine.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
isatty_bsd.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
isatty_linux.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
isatty_solaris.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00
isatty_windows.go TUN-4961: Update quic-go to latest 2021-08-27 12:26:00 +01:00

README.md

go-isatty

isatty for golang

Usage

package main

import (
	"fmt"
	"github.com/mattn/go-isatty"
	"os"
)

func main() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)