Documentation ¶
Index ¶
- func BindEnv(name, defValue string) (bindVal string)
- func Dir(fpath string) string
- func Filename(fpath string) string
- func IsExistDir(fPath string) bool
- func IsExistFile(fPath string) bool
- func IsExistPath(fPath string) bool
- func IsLinux() bool
- func IsMac() bool
- func IsSupport256Color() bool
- func IsSupportColor() bool
- func IsSupportTrueColor() bool
- func IsWin() bool
- func Remove(fpath string) error
- func Rename(oldPath, newPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExistDir ¶
func IsExistFile ¶
func IsExistPath ¶
func IsSupport256Color ¶
func IsSupport256Color() bool
IsSupport256Color checks current console whether supports 256 color.
func IsSupportColor ¶
func IsSupportColor() bool
IsSupportColor checks current console whether supports color. Supported: linux, mac, or windows's ConEmu, Cmder, putty, git-bash.exe Not support: windows cmd.exe, powerShell.exe
func IsSupportTrueColor ¶
func IsSupportTrueColor() bool
IsSupportTrueColor checks current console whether supports true color.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.