os

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLinux

func IsLinux() bool

IsLinux determines whether the system is linux.

func IsMac

func IsMac() bool

IsMac determines whether the system is darwin.

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.

func IsWin

func IsWin() bool

IsWin determine whether the system is windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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