output

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBulkResults

func FormatBulkResults(results []BulkResult, format OutputFormat) (string, error)

FormatBulkResults formats bulk results based on the output format

func FormatHistoryResults

func FormatHistoryResults(results []HistoryResult, format OutputFormat) (string, error)

FormatHistoryResults formats history results based on the output format

func FormatRelease

func FormatRelease(release *github.Release, format OutputFormat) (string, error)

FormatRelease formats a single release based on the output format

Types

type BulkResult

type BulkResult struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag,omitempty"`
	Error      string `json:"error,omitempty"`
}

BulkResult represents the result of processing a single repository in bulk operations

type HistoryResult

type HistoryResult struct {
	Repository        string `json:"repository"`
	HistoricalVersion string `json:"historical_version"`
	CurrentVersion    string `json:"current_version,omitempty"`
	HasUpdate         bool   `json:"has_update"`
	Error             string `json:"error,omitempty"`
}

HistoryResult represents the result of comparing historical version with current release

type OutputFormat

type OutputFormat string

OutputFormat represents the output format type

const (
	// FormatText outputs in plain text format (default)
	FormatText OutputFormat = "text"
	// FormatJSON outputs in JSON format
	FormatJSON OutputFormat = "json"
)

Jump to

Keyboard shortcuts

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