ms

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Arch = getCurrentArchitecture()

Functions

func IsSupported added in v1.4.0

func IsSupported(left string, right Architecture) bool

Types

type Architecture

type Architecture int
const (
	Amd64 Architecture = iota + 1
	I386
	Arm64
	Arm
)

func NewArchitecture

func NewArchitecture(input string) (Architecture, error)

NewArchitecture return Architecture from input string or error if invalid format.

func (Architecture) CompatibleWith

func (a Architecture) CompatibleWith() []string

CompatibleWith returns a list of architectures with whom this architecture is compatible with.

func (Architecture) String

func (a Architecture) String() string

String returns corresponding MS Store and Windows OS literal.

type BundleFileInfo added in v1.4.0

type BundleFileInfo struct {
	*FileInfo
	// contains filtered or unexported fields
}

func NewBundleFileInfo added in v1.4.0

func NewBundleFileInfo(file *FileInfo) *BundleFileInfo

func (*BundleFileInfo) AddDependency added in v1.4.0

func (b *BundleFileInfo) AddDependency(file *FileInfo)

func (*BundleFileInfo) Dependencies added in v1.4.0

func (b *BundleFileInfo) Dependencies() []*FileInfo

func (*BundleFileInfo) String added in v1.4.0

func (b *BundleFileInfo) String() string

type FileInfo

type FileInfo struct {
	Path    string
	Name    string
	Version *Version
}

func NewFileInfo added in v1.4.0

func NewFileInfo(path, name string, version *Version) *FileInfo

func (*FileInfo) String added in v1.4.0

func (f *FileInfo) String() string

type Locale

type Locale struct {
	Language string
	Country  string
}

Locale represents ISO 639-1 language tag and optional ISO 3166-1 country code.

func NewLocale

func NewLocale(input string) (*Locale, error)

NewLocale returns Locale from RFC 5646 input string or error if invalid format. See Appendix A for examples.

func (*Locale) Equal

func (l *Locale) Equal(other *Locale) bool

func (*Locale) String

func (l *Locale) String() string

String returns MS Store compatible locale literal.

type Version

type Version struct {
	Major    uint16
	Minor    uint16
	Build    uint16
	Revision uint16
	Encoded  uint64
}

Version type represents 4-digit version used in Windows and MS Store.

func NewVersion

func NewVersion(input string) (*Version, error)

NewVersion returns Version from string representing SemVer.

func NewVersionFromNumber added in v1.4.0

func NewVersionFromNumber(input uint64) *Version

func (*Version) Equal

func (v *Version) Equal(other *Version) bool

func (*Version) LessOrEqual added in v1.4.0

func (v *Version) LessOrEqual(other *Version) bool

LessOrEqual returns true if this Version less or equal than other Version.

func (*Version) LessThan

func (v *Version) LessThan(other *Version) bool

LessThan returns true if this Version less than other Version.

func (*Version) MoreOrEqual added in v1.4.0

func (v *Version) MoreOrEqual(other *Version) bool

MoreOrEqual returns true if this Version more or equal than other Version.

func (*Version) MoreThan added in v1.4.0

func (v *Version) MoreThan(other *Version) bool

MoreThan returns true if this Version more than other Version.

func (*Version) Number added in v1.4.0

func (v *Version) Number() uint64

Number returns uint64 representation.

func (*Version) String

func (v *Version) String() string

String returns SemVer representation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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