Registry / utility / mattn-go-isatty

mattn-go-isatty

JSON →
library0.0.22gogounverified

Package isatty implements interface to isatty, checking whether a file descriptor refers to a terminal.

go get github.com/mattn/go-isatty
INSTALL
IMPORT
SIG · MATTN-GO-ISATTY
M
mattn-go-isatty
utilitygov0.0.22
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

isatty
github.com/mattn/go-isatty

Checks if stdout is a terminal.

package main import ( "fmt" "os" "github.com/mattn/go-isatty" ) func main() { if isatty.IsTerminal(os.Stdout.Fd()) { fmt.Println("stdout is a terminal") } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.22latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mattn-go-isatty — go get mattn-go-isatty · libregistry