photoprism-client-go/vendor/github.com/mattn/go-isatty
Kris Nóva e4323b6047 Working auth and photo json endpoint
Signed-off-by: Kris Nóva <kris@nivenly.com>
2021-02-09 11:17:06 -08:00
..
.travis.yml Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
LICENSE Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
README.md Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
doc.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
go.mod Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
go.sum Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
go.test.sh Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_bsd.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_others.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_plan9.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_solaris.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_tcgets.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
isatty_windows.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
renovate.json Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00

README.md

go-isatty

Godoc Reference Codecov Coverage Status Go Report Card

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 if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Cygwin/MSYS2 Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

Thanks