utils

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConsole

func IsConsole(out io.Writer) bool

判断 w 是否为 stderr、stdout、stdin 三者之一

func IsLinux

func IsLinux() bool

IsLinux

func IsMSys

func IsMSys() bool

IsMSys msys(MINGW64) 环境,不一定支持颜色

func IsMac

func IsMac() bool

IsMac

func IsSupport256Color

func IsSupport256Color() bool

IsSupport256Color

func IsSupportColor

func IsSupportColor() bool

IsSupportColor check console is support color. supported: linux, mac, or windows's ConEmu, Cmder, putty, git-bash.exe not support: windows cmd, powerShell

func IsWin

func IsWin() bool

IsWin linux windows darwin

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL