static

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 10 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, filename string, opts Options) func(nodeCount int, elapsed time.Duration)

func Render

func Render(w io.Writer, root *node.Node, opts Options) error

func RenderError

func RenderError(w io.Writer, err error, opts Options)

Types

type Options

type Options struct {
	Theme        Theme
	ShowStats    bool
	ShowMerkle   bool
	ShowLineNums bool
	Compact      bool
	Quiet        bool
	NoColor      bool
	Filename     string
}

func DefaultOptions

func DefaultOptions() Options

type Theme

type Theme struct {
	ObjectKey   lipgloss.Style
	ArrayIndex  lipgloss.Style
	StringVal   lipgloss.Style
	NumberVal   lipgloss.Style
	BoolVal     lipgloss.Style
	NullVal     lipgloss.Style
	Punctuation lipgloss.Style
	LineNumber  lipgloss.Style
	HashTag     lipgloss.Style
	StatTag     lipgloss.Style
	ErrorStyle  lipgloss.Style
	Banner      lipgloss.Style
	BannerOK    lipgloss.Style
}

func ResolveTheme added in v1.0.0

func ResolveTheme(name string) Theme

Jump to

Keyboard shortcuts

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