debian-forge-composer/vendor/github.com/mattn/go-isatty
Lars Karlitski 9c2c92f729 jobqueue: Introduce jobqueue backed by a postgres database
Co-authored-by: sanne <sanne.raymaekers@gmail.com>
2021-07-28 21:52:31 +01:00
..
.travis.yml jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
doc.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
go.mod jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
go.sum jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
go.test.sh jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_bsd.go jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_others.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
isatty_plan9.go jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_solaris.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
isatty_tcgets.go jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_windows.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
LICENSE worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
README.md jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
renovate.json jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00

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