goreleases

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package goreleases builds a more complete version of the release data available at https://golang.org/dl/?mode=json&include=all. The main difference is goreleases included prerelease versions from the past.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConflicts added in v0.2.0

func FindConflicts(base, head []Release) []string

FindConflicts returns conflicts that would prevent automatically merging head into base. Conflicts include missing releases in head and any change to an existing release.

Types

type FetchReleasesOptions

type FetchReleasesOptions struct {
	HTTPClient   *http.Client
	SkipVersions []string // go versions to skip ( like go1.7.2 which was pulled )
}

FetchReleasesOptions options for FetchReleases

type Release

type Release struct {
	Version string        `json:"version"`
	Stable  bool          `json:"stable"`
	Files   []ReleaseFile `json:"files"`
}

Release is a go release

func FetchReleases

func FetchReleases(ctx context.Context, options *FetchReleasesOptions) ([]Release, error)

FetchReleases fetches release data from storage.googleapis.com/golang and golang.org/dl

type ReleaseFile

type ReleaseFile struct {
	Filename string `json:"filename"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	Sha256   string `json:"sha256"`
	Size     int64  `json:"size"`
	Kind     string `json:"kind"`
}

ReleaseFile is a file included in a go release

Jump to

Keyboard shortcuts

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