latest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package latest contains helper methods of all kinds

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(in <-chan *Release) <-chan *Release

All simply passes through all Releases

func ExpandRepo

func ExpandRepo(repo string) string

ExpandRepo checks whether "repo" contains a "/", and expands to "repo/repo" otherwise.

func NoPrereleases

func NoPrereleases(in <-chan *Release) <-chan *Release

NoPrereleases filters out all Release that are prereleases

func OnlyPrerelease

func OnlyPrerelease(in <-chan *Release) <-chan *Release

OnlyPrerelease filters out all Release that are NOT prereleases

Types

type Filter

type Filter func(<-chan *Release) <-chan *Release

Filter represents a function that filters releases for certain criteria

type Release

type Release struct {
	TagName    string `json:"tag_name"`
	Prerelease bool   `json:"prerelease"`
}

Release contains relevant fields of a GitHub release

func Latest

func Latest(in <-chan *Release) *Release

Latest reads all releases from IN and returns the latest

type Releases

type Releases []*Release

Releases represents a list of releases :tada:

func (Releases) Emit

func (r Releases) Emit() <-chan *Release

Emit spews out all releases in a channel

Jump to

Keyboard shortcuts

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