win

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is64Arch

func Is64Arch() bool

Is64Arch detects if program running on 64bits architecture

func Locale

func Locale() string

Locale returns the locale set for the user and falls back to the locale set for the system if unset. Returns "en-US" if all of them are unset.

func SetConsoleTitle

func SetConsoleTitle(title string) (int, error)

SetConsoleTitle sets windows console title

func SetPermEnv

func SetPermEnv(env registry.Key, name string, value string) error

SetPermEnv set an environment variable permanently on Windows

Types

type Version

type Version struct {
	Major int
	Minor int
	Build int
}

Version identifies a Windows version by major, minor, and build number.

func GetVersion

func GetVersion() (Version, error)

GetVersion returns the Windows version information. Applications not manifested for Windows 8.1 or Windows 10 will return the Windows 8 OS version value (6.2). For a table of version numbers see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724833(v=vs.85).aspx

Jump to

Keyboard shortcuts

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