Registry / utility / mattn-go-isatty-v0

mattn-go-isatty-v0

JSON →
library0.0.4gogounverified

Package isatty implements interface to isatty for detecting if a file descriptor is a terminal.

go get gopkg.in/mattn/go-isatty.v0
INSTALL
IMPORT
SIG · MATTN-GO-ISATTY-V0
M
mattn-go-isatty-v0
utilitygov0.0.4
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
gopkg.in/mattn/go-isatty.v0

Checks if stdout is a terminal.

package main import ( "fmt" "os" "gopkg.in/mattn/go-isatty.v0" ) 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.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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