myos

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindEnv

func BindEnv(name, defValue string) (bindVal string)

func Dir

func Dir(fpath string) string

func Filename

func Filename(fpath string) string

func IsExistDir

func IsExistDir(fPath string) bool

func IsExistFile

func IsExistFile(fPath string) bool

func IsExistPath

func IsExistPath(fPath string) bool

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.

func Remove

func Remove(fpath string) error

func Rename

func Rename(oldPath, newPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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