Documentation ¶
Index ¶
- Constants
- type Asset
- type AssetArch
- type AssetOS
- type AssetType
- type ComparableTo
- type CompareResult
- func CompareBigInt(a *big.Int, b *big.Int) CompareResult
- func CompareBool[T ~bool](a T, b T) CompareResult
- func CompareByte[T ~byte](a T, b T) CompareResult
- func CompareInt[T ~int](a T, b T) CompareResult
- func CompareInt64[T ~int64](a T, b T) CompareResult
- func CompareRune[T ~rune](a T, b T) CompareResult
- func CompareString[T ~string](a T, b T) CompareResult
- func CompareUint[T ~uint](a T, b T) CompareResult
- func CompareUint64[T ~uint64](a T, b T) CompareResult
- 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
- func (value *CompareResult) UnmarshalText(raw []byte) error
- type EnumData
- type Release
- type SortableList
- type Version
- type VersionElement
- type VersionElementList
- type VersionElementType
- 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
- func (value *VersionElementType) UnmarshalText(raw []byte) error
Constants ¶
View Source
const IndexFileName = "index.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { ID int64 `json:"id,omitempty"` URL string `json:"url"` Name string `json:"name"` Base string `json:"base,omitempty"` OS AssetOS `json:"os"` Arch AssetArch `json:"arch"` Type AssetType `json:"type"` }
func MakeSourceTarballAsset ¶
func MakeSourceZipballAsset ¶
func (Asset) CompareTo ¶
func (a Asset) CompareTo(other Asset) CompareResult
func (Asset) ExtractBuildID ¶
type AssetArch ¶
type AssetArch byte
func (AssetArch) CompareTo ¶
func (value AssetArch) CompareTo(other AssetArch) CompareResult
func (AssetArch) MarshalText ¶
func (*AssetArch) UnmarshalText ¶
type AssetOS ¶
type AssetOS byte
func (AssetOS) CompareTo ¶
func (value AssetOS) CompareTo(other AssetOS) CompareResult
func (AssetOS) MarshalText ¶
func (*AssetOS) UnmarshalText ¶
type AssetType ¶
type AssetType byte
func (AssetType) CompareTo ¶
func (value AssetType) CompareTo(other AssetType) CompareResult
func (AssetType) MarshalText ¶
func (*AssetType) UnmarshalText ¶
type ComparableTo ¶
type ComparableTo[T any] interface { CompareTo(T) CompareResult }
type CompareResult ¶
type CompareResult int
const ( LT CompareResult = -1 EQ CompareResult = 0 GT CompareResult = 1 )
func CompareBigInt ¶
func CompareBigInt(a *big.Int, b *big.Int) CompareResult
func CompareBool ¶
func CompareBool[T ~bool](a T, b T) CompareResult
func CompareByte ¶
func CompareByte[T ~byte](a T, b T) CompareResult
func CompareInt ¶
func CompareInt[T ~int](a T, b T) CompareResult
func CompareInt64 ¶
func CompareInt64[T ~int64](a T, b T) CompareResult
func CompareRune ¶
func CompareRune[T ~rune](a T, b T) CompareResult
func CompareString ¶
func CompareString[T ~string](a T, b T) CompareResult
func CompareUint ¶
func CompareUint[T ~uint](a T, b T) CompareResult
func CompareUint64 ¶
func CompareUint64[T ~uint64](a T, b T) CompareResult
func (CompareResult) CompareTo ¶
func (value CompareResult) CompareTo(other CompareResult) CompareResult
func (CompareResult) Data ¶
func (value CompareResult) Data() EnumData
func (CompareResult) GoString ¶
func (value CompareResult) GoString() string
func (CompareResult) MarshalText ¶
func (value CompareResult) MarshalText() ([]byte, error)
func (CompareResult) String ¶
func (value CompareResult) String() string
func (*CompareResult) UnmarshalText ¶
func (value *CompareResult) UnmarshalText(raw []byte) error
type Release ¶
type Release struct { ID int64 `json:"id,omitempty"` Tag string `json:"tag"` Name string `json:"name,omitempty"` Body string `json:"body,omitempty"` Version Version `json:"version"` Assets []Asset `json:"assets,omitempty"` }
func (Release) CompareTo ¶
func (r Release) CompareTo(other Release) CompareResult
func (Release) FirstMatchingAsset ¶ added in v0.4.0
type SortableList ¶
type SortableList[T ComparableTo[T]] []T
func (SortableList[T]) Len ¶
func (list SortableList[T]) Len() int
func (SortableList[T]) Less ¶
func (list SortableList[T]) Less(i, j int) bool
func (SortableList[T]) Sort ¶
func (list SortableList[T]) Sort()
func (SortableList[T]) Swap ¶
func (list SortableList[T]) Swap(i, j int)
type Version ¶
type Version struct { Major uint `json:"major"` Minor uint `json:"minor"` Patch uint `json:"patch"` Prerelease string `json:"prerelease,omitempty"` BuildID string `json:"buildID,omitempty"` }
func (Version) CompareTo ¶
func (v Version) CompareTo(other Version) CompareResult
func (Version) GoAppendTo ¶
type VersionElement ¶
type VersionElement struct { Type VersionElementType IntValue *big.Int StrValue string }
func (VersionElement) CompareTo ¶
func (elem VersionElement) CompareTo(other VersionElement) CompareResult
type VersionElementList ¶
type VersionElementList []VersionElement
func ParseVersionString ¶
func ParseVersionString(str string) VersionElementList
func ParseVersionStringRaw ¶
func ParseVersionStringRaw(str string) VersionElementList
func ParseVersionStrings ¶
func ParseVersionStrings(inList []string) []VersionElementList
func (VersionElementList) CompareTo ¶
func (list VersionElementList) CompareTo(other VersionElementList) CompareResult
type VersionElementType ¶
type VersionElementType byte
const ( UnknownVET VersionElementType = iota SymbolsVET DigitsVET LettersVET NumVersionElementTypes )
func (VersionElementType) CompareTo ¶
func (value VersionElementType) CompareTo(other VersionElementType) CompareResult
func (VersionElementType) Data ¶
func (value VersionElementType) Data() EnumData
func (VersionElementType) GoString ¶
func (value VersionElementType) GoString() string
func (VersionElementType) MarshalText ¶
func (value VersionElementType) MarshalText() ([]byte, error)
func (VersionElementType) String ¶
func (value VersionElementType) String() string
func (*VersionElementType) UnmarshalText ¶
func (value *VersionElementType) UnmarshalText(raw []byte) error
Click to show internal directories.
Click to hide internal directories.