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

static

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cyber   = themeFromPalette(theme.PaletteCyber)
	Matrix  = themeFromPalette(theme.PaletteMatrix)
	Dracula = themeFromPalette(theme.PaletteDracula)
	Nord    = themeFromPalette(theme.PaletteNord)
)

Functions

func Boot

func Boot(w io.Writer, name string, opts Options)

func RenderNote

func RenderNote(w io.Writer, note string, opts Options)

func RenderReport

func RenderReport(w io.Writer, rep Report, opts Options)

func RenderSummary

func RenderSummary(w io.Writer, sum Summary, opts Options)

func Write

func Write(w io.Writer, data []byte) error

Types

type Options

type Options struct {
	Theme   Theme
	NoColor bool
	Quiet   bool
}

type Report

type Report struct {
	Source optimize.Source
	Format optimize.Format
	Width  int
	Height int
	Steps  []optimize.Step
	Active int
}

type Summary

type Summary struct {
	Source optimize.Source
	Result optimize.Result
	Output string
}

type Theme

type Theme struct {
	Banner lipgloss.Style
	Label  lipgloss.Style
	Value  lipgloss.Style
	Dim    lipgloss.Style
	Win    lipgloss.Style
}

func ResolveTheme

func ResolveTheme(name string) Theme

Jump to

Keyboard shortcuts

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