package osversion

import "github.com/Microsoft/hcsshim/osversion"

Index

Constants

const (

	// RS2 was a client-only release in case you're asking why it's not in the list.
	RS1 = 14393
	RS3 = 16299
	RS4 = 17134
	RS5 = 17763
)

Types

type OSVersion

type OSVersion struct {
	Version      uint32
	MajorVersion uint8
	MinorVersion uint8
	Build        uint16
}

OSVersion is a wrapper for Windows version information https://msdn.microsoft.com/en-us/library/windows/desktop/ms724439(v=vs.85).aspx

func Get

func Get() OSVersion

Get gets the operating system version on Windows. The calling application must be manifested to get the correct version information.

func (OSVersion) ToString

func (osv OSVersion) ToString() string

Source Files

osversion.go windowsbuilds.go

Version
v0.7.7
Published
Oct 8, 2018
Platform
js/wasm
Imports
2 packages
Last checked
2 hours ago

Tools for package owners.