runtime

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin added in v1.22.0

func IsAdmin() bool

Check if the program is running with root/Administrator privileges.

func KernelDisplayVersion

func KernelDisplayVersion() string

func KernelReleaseID

func KernelReleaseID() string

func RunPath

func RunPath() (string, error)

Get the directory where the executable file is located.

func UserCacheDir

func UserCacheDir() (string, error)

func UserConfigDir

func UserConfigDir() (string, error)

func UserHomeDir

func UserHomeDir() (string, error)

func WindowsKernelInfo

func WindowsKernelInfo() *wsInfo

Types

type Info

type Info struct {
	KernelReleaseID      string
	KernelDisplayVersion string
}

func KernelInfo

func KernelInfo() *Info

Use pwsh

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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