Açıklama Yok

mattn 66b8e73f3f Merge pull request #10 from stuartnelson3/patch-1 9 yıl önce
_example 3f7a6730f5 add example 10 yıl önce
LICENSE f60d253179 Added license file. 10 yıl önce
README.md 02fb6bf60d Suppress int() 11 yıl önce
doc.go d8798807d8 godoc 11 yıl önce
isatty_appengine.go ca19903305 Support for AppEngine classic 10 yıl önce
isatty_bsd.go 089e34f010 Add dragonfly to bsd build 9 yıl önce
isatty_linux.go ca19903305 Support for AppEngine classic 10 yıl önce
isatty_solaris.go ca19903305 Support for AppEngine classic 10 yıl önce
isatty_windows.go ca19903305 Support for AppEngine classic 10 yıl önce

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)