OS

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home() (string, error)

Home returns the home directory for the executing user.

This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.

func IsDarwin

func IsDarwin() bool

IsDarwin determines whether current OS is Darwin.

func IsLinux

func IsLinux() bool

IsLinux determines whether current OS is Linux.

func IsWindows

func IsWindows() bool

IsWindows determines whether current OS is Windows.

func Pwd

func Pwd() string

Pwd gets the path of current working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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