versions

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package versions contains functions to parse and sort Bazel version identifier.

Index

Constants

View Source
const (
	// BazelUpstream contains the name of the official Bazel GitHub organization.
	BazelUpstream = "bazelbuild"
)

Variables

This section is empty.

Functions

func GetInAscendingOrder

func GetInAscendingOrder(versions []string) []string

GetInAscendingOrder returns the given versions sorted in ascending order.

Types

type Info

type Info struct {
	IsRelease, IsCandidate, IsCommit, IsFork, IsRelative, IsDownstream bool
	Fork, Value                                                        string
	LatestOffset                                                       int
}

Info represents a structured Bazel version identifier.

func Parse

func Parse(fork, version string) (*Info, error)

Parse extracts and returns structured information about the given Bazel version label.

Jump to

Keyboard shortcuts

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