release

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the version of the release
	Version string
	// Commit is the commit hash of the release
	Commit string
	// BuildDate is the date when the release was built
	BuildDate string
)

Functions

This section is empty.

Types

type Output added in v0.3.2

type Output struct {
	Writer io.Writer
}

Output represents the output for a release

func NewOutput added in v0.3.2

func NewOutput(w io.Writer) *Output

NewOutput returns a new Output

func (*Output) Text added in v0.3.2

func (v *Output) Text(r *Release) error

Text writes a release information in text format

type Release

type Release struct {
	// BuildDate is the date when the release was built
	BuildDate string
	// Commit is the commit hash of the release
	Commit string
	// Header is the header of the release
	Header string
	// OsArch is the OS and architecture of the release
	OsArch string
	// Version is the version of the release
	Version string
}

Release contains information about the release

func NewRelease

func NewRelease(os, arch string) *Release

NewRelease creates a new Release instance

Jump to

Keyboard shortcuts

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