aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/mattn/go-isatty/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mattn/go-isatty/README.md')
-rw-r--r--vendor/github.com/mattn/go-isatty/README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-isatty/README.md b/vendor/github.com/mattn/go-isatty/README.md
new file mode 100644
index 0000000..74845de
--- /dev/null
+++ b/vendor/github.com/mattn/go-isatty/README.md
@@ -0,0 +1,37 @@
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)