Documentation
¶
Index ¶
- Variables
- func IsSupported(left string, right Architecture) bool
- type Architecture
- type BundleFileInfo
- type FileInfo
- type Locale
- type Version
- func (v *Version) Equal(other *Version) bool
- func (v *Version) LessOrEqual(other *Version) bool
- func (v *Version) LessThan(other *Version) bool
- func (v *Version) MoreOrEqual(other *Version) bool
- func (v *Version) MoreThan(other *Version) bool
- func (v *Version) Number() uint64
- func (v *Version) String() string
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 ¶
func NewFileInfo ¶ added in v1.4.0
type Locale ¶
Locale represents ISO 639-1 language tag and optional ISO 3166-1 country code.
type Version ¶
Version type represents 4-digit version used in Windows and MS Store.
func NewVersion ¶
NewVersion returns Version from string representing SemVer.
func NewVersionFromNumber ¶ added in v1.4.0
func (*Version) LessOrEqual ¶ added in v1.4.0
LessOrEqual returns true if this Version less or equal than other Version.
func (*Version) MoreOrEqual ¶ added in v1.4.0
MoreOrEqual returns true if this Version more or equal than other Version.
func (*Version) MoreThan ¶ added in v1.4.0
MoreThan returns true if this Version more than other Version.
Click to show internal directories.
Click to hide internal directories.