# goTerminal **Repository Path**: shirdonl/goTerminal ## Basic Information - **Project Name**: goTerminal - **Description**: 像Cygwin的命令行go工具库 go Cygwin like terminal - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/shirdonl/goTerminal.git - **GVP Project**: No ## Statistics - **Stars**: 8 - **Forks**: 2 - **Created**: 2019-12-01 - **Last Updated**: 2022-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # goTerminal 像Cygwin的命令行go工具库 go Cygwin like terminal go terminal for golang ## 用法 ```go package main import ( "fmt" "gitee.com/shirdonl/goTerminal" "os" ) func main() { if goterminal.IsTerminal(os.Stdout.Fd()) { fmt.Println("Is Terminal") } else if goterminal.IsCygwinTerminal(os.Stdout.Fd()) { fmt.Println("Is Cygwin/MSYS2 Terminal") } else { fmt.Println("Is Not Terminal") } } ``` ## 安装 ``` $ go get gitee.com/shirdonl/goTerminal ``` ## License MIT