• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..20-Jul-2016-

LICENSEH A D20-Jul-20161.1 KiB105

README.mdH A D20-Jul-2016374 3826

doc.goH A D20-Jul-201664 31

isatty_appengine.goH A D20-Jul-2016226 104

isatty_bsd.goH A D20-Jul-2016415 1911

isatty_linux.goH A D20-Jul-2016389 1911

isatty_solaris.goH A D20-Jul-2016402 179

isatty_windows.goH A D20-Jul-2016434 2012

README.md

1# go-isatty
2
3isatty for golang
4
5## Usage
6
7```go
8package main
9
10import (
11	"fmt"
12	"github.com/mattn/go-isatty"
13	"os"
14)
15
16func main() {
17	if isatty.IsTerminal(os.Stdout.Fd()) {
18		fmt.Println("Is Terminal")
19	} else {
20		fmt.Println("Is Not Terminal")
21	}
22}
23```
24
25## Installation
26
27```
28$ go get github.com/mattn/go-isatty
29```
30
31# License
32
33MIT
34
35# Author
36
37Yasuhiro Matsumoto (a.k.a mattn)
38