mattermost-community-enterp.../vendor/github.com/mattn/go-isatty
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00
..
doc.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
go.test.sh Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_bsd.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_others.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_plan9.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_solaris.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_tcgets.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
isatty_windows.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
LICENSE Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
README.md Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09: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