diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-09-07 09:09:07 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-09-07 09:09:07 -0400 |
| commit | b152f2ef04a04af5185891428a63e5343187b1f8 (patch) | |
| tree | ebce2111110a9f1adf3abe450d68922cd276c199 /vendor/github.com/mattn/go-isatty/README.md | |
| parent | a98742ce47c0d3a4b21e6733666e1edec9118eab (diff) | |
Add vendor
Diffstat (limited to 'vendor/github.com/mattn/go-isatty/README.md')
| -rw-r--r-- | vendor/github.com/mattn/go-isatty/README.md | 37 |
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 @@ +# go-isatty + +isatty for golang + +## Usage + +```go +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) |
