mirror of
https://github.com/luxfi/kms.git
synced 2026-10-30 16:23:36 +00:00
luxfi/geth wiped its v1.16.x line (v1.16.98 gone) in the ecosystem
re-tag, breaking 'go mod download' at Dockerfile:27. Move to the coherent
set crypto v1.19.27 -> geth v1.17.12 (both proxy-resolvable), regenerate
go.sum against the public proxy (matches the Dockerfile's proxy fetch),
and re-vendor so the in-tree vendor/ stays consistent. Pairs with the
already-landed KMS<->MPC ZAP wire fix (82ef601) so a tagged release both
builds and signs against mpcd.
Co-authored-by: Hanzo Dev <[email protected]>
go-isatty
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
-
k-takata: base idea for IsCygwinTerminal