Versions in this module Expand all Collapse all v0 v0.5.0 Dec 14, 2022 v0.4.0 Dec 14, 2022 Changes in this version + const IndexFileName type Release + func (r Release) FirstMatchingAsset(fn func(Asset) bool) (Asset, bool) + func (r Release) MatchingAssets(fn func(Asset) bool) []Asset v0.3.0 Dec 13, 2022 v0.2.0 Dec 13, 2022 v0.1.0 Dec 13, 2022 Changes in this version + type Asset struct + Arch AssetArch + Base string + ID int64 + Name string + OS AssetOS + Type AssetType + URL string + func MakeAsset(assetID int64, assetURL string, assetName string) Asset + func MakeSourceTarballAsset(assetURL string) Asset + func MakeSourceZipballAsset(assetURL string) Asset + func (a Asset) CompareTo(other Asset) CompareResult + func (a Asset) ExtractBuildID(ctx context.Context, releaseDir string) (string, bool) + func (a Asset) Mode() fs.FileMode + type AssetArch byte + const AMD64Arch + const ARM64Arch + const AnyArch + const NumAssetArches + const UnknownAssetArch + func (value *AssetArch) UnmarshalText(raw []byte) error + func (value AssetArch) CompareTo(other AssetArch) CompareResult + func (value AssetArch) Data() EnumData + func (value AssetArch) GoString() string + func (value AssetArch) MarshalText() ([]byte, error) + func (value AssetArch) String() string + type AssetOS byte + const AnyOS + const LinuxOS + const NumAssetOSes + const UnknownAssetOS + func (value *AssetOS) UnmarshalText(raw []byte) error + func (value AssetOS) CompareTo(other AssetOS) CompareResult + func (value AssetOS) Data() EnumData + func (value AssetOS) GoString() string + func (value AssetOS) MarshalText() ([]byte, error) + func (value AssetOS) String() string + type AssetType byte + const ExecutableType + const NumAssetTypes + const ProvenanceType + const SourceTarType + const SourceZipType + const UnknownAssetType + func (value *AssetType) UnmarshalText(raw []byte) error + func (value AssetType) CompareTo(other AssetType) CompareResult + func (value AssetType) Data() EnumData + func (value AssetType) GoString() string + func (value AssetType) MarshalText() ([]byte, error) + func (value AssetType) String() string + type ComparableTo interface + CompareTo func(T) CompareResult + type CompareResult int + const EQ + const GT + const LT + func CompareBigInt(a *big.Int, b *big.Int) CompareResult + func CompareBool(a T, b T) CompareResult + func CompareByte(a T, b T) CompareResult + func CompareInt(a T, b T) CompareResult + func CompareInt64(a T, b T) CompareResult + func CompareRune(a T, b T) CompareResult + func CompareString(a T, b T) CompareResult + func CompareUint(a T, b T) CompareResult + func CompareUint64(a T, b T) CompareResult + func (value *CompareResult) UnmarshalText(raw []byte) error + func (value CompareResult) CompareTo(other CompareResult) CompareResult + func (value CompareResult) Data() EnumData + func (value CompareResult) GoString() string + func (value CompareResult) MarshalText() ([]byte, error) + func (value CompareResult) String() string + type EnumData struct + Aliases []string + GoName string + Name string + type Release struct + Assets []Asset + Body string + ID int64 + Name string + Tag string + Version Version + func (r Release) CompareTo(other Release) CompareResult + type SortableList []T + func (list SortableList[T]) Len() int + func (list SortableList[T]) Less(i, j int) bool + func (list SortableList[T]) Sort() + func (list SortableList[T]) Swap(i, j int) + type Version struct + BuildID string + Major uint + Minor uint + Patch uint + Prerelease string + func (v *Version) Parse(str string) bool + func (v Version) AppendTo(out []byte) []byte + func (v Version) CompareTo(other Version) CompareResult + func (v Version) GoAppendTo(out []byte) []byte + func (v Version) GoString() string + func (v Version) String() string + type VersionElement struct + IntValue *big.Int + StrValue string + Type VersionElementType + func (elem VersionElement) CompareTo(other VersionElement) CompareResult + type VersionElementList []VersionElement + func ParseVersionString(str string) VersionElementList + func ParseVersionStringRaw(str string) VersionElementList + func ParseVersionStrings(inList []string) []VersionElementList + func (list VersionElementList) CompareTo(other VersionElementList) CompareResult + type VersionElementType byte + const DigitsVET + const LettersVET + const NumVersionElementTypes + const SymbolsVET + const UnknownVET + func (value *VersionElementType) UnmarshalText(raw []byte) error + func (value VersionElementType) CompareTo(other VersionElementType) CompareResult + func (value VersionElementType) Data() EnumData + func (value VersionElementType) GoString() string + func (value VersionElementType) MarshalText() ([]byte, error) + func (value VersionElementType) String() string