Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorReset  = "\033[0m"
	ColorRed    = "\033[31m"
	ColorGreen  = "\033[32m"
	ColorYellow = "\033[33m"
	ColorBlue   = "\033[34m"
	ColorGray   = "\033[90m"
	ColorBold   = "\033[1m"
)

ANSI color codes

View Source
const (
	IconApproved         = "✓"
	IconChangesRequested = "✗"
	IconPending          = "○"
	IconDraft            = "◐"
	IconSuccess          = "✓"
	IconFailure          = "✗"
	IconInProgress       = "⟳"
	IconNeutral          = "—"
)

Status icons

Variables

This section is empty.

Functions

func FormatPRTable

func FormatPRTable(prs []*github.PullRequest, opts *PRFormatterOptions) string

FormatPRTable formats a list of pull requests as a table

Types

type PRFormatterOptions

type PRFormatterOptions struct {
	UseColor      bool   // Enable color output
	MaxTitleWidth int    // Maximum width for title column (0 = no limit)
	SortBy        string // Sort field: "updated", "created", "number"
	SortDesc      bool   // Sort in descending order
	ShowSummary   bool   // Show summary row at the end
}

PRFormatterOptions contains options for formatting PR output

func DefaultPRFormatterOptions

func DefaultPRFormatterOptions() *PRFormatterOptions

DefaultPRFormatterOptions returns options with sensible defaults

Jump to

Keyboard shortcuts

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