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

styles

package
v0.45.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package styles provides no-op style definitions for Wasm builds. All styles return text unchanged (no ANSI codes).

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorError       = WasmColor{}
	ColorWarning     = WasmColor{}
	ColorSuccess     = WasmColor{}
	ColorInfo        = WasmColor{}
	ColorPurple      = WasmColor{}
	ColorYellow      = WasmColor{}
	ColorComment     = WasmColor{}
	ColorForeground  = WasmColor{}
	ColorBackground  = WasmColor{}
	ColorBorder      = WasmColor{}
	ColorTableAltRow = WasmColor{}
)

Adaptive color variables (no-op in Wasm)

View Source
var (
	RoundedBorder = WasmBorder{}
	NormalBorder  = WasmBorder{}
	ThickBorder   = WasmBorder{}
)

Border definitions (no-op in Wasm)

View Source
var (
	Error          = WasmStyle{}
	Warning        = WasmStyle{}
	Success        = WasmStyle{}
	Info           = WasmStyle{}
	FilePath       = WasmStyle{}
	LineNumber     = WasmStyle{}
	ContextLine    = WasmStyle{}
	Highlight      = WasmStyle{}
	Location       = WasmStyle{}
	Command        = WasmStyle{}
	Progress       = WasmStyle{}
	Prompt         = WasmStyle{}
	Count          = WasmStyle{}
	Verbose        = WasmStyle{}
	ListHeader     = WasmStyle{}
	ListItem       = WasmStyle{}
	TableHeader    = WasmStyle{}
	TableCell      = WasmStyle{}
	TableTotal     = WasmStyle{}
	TableTitle     = WasmStyle{}
	TableBorder    = WasmStyle{}
	ServerName     = WasmStyle{}
	ServerType     = WasmStyle{}
	ErrorBox       = WasmStyle{}
	Header         = WasmStyle{}
	TreeEnumerator = WasmStyle{}
	TreeNode       = WasmStyle{}
)

Pre-configured styles (all no-op in Wasm)

Functions

This section is empty.

Types

type WasmBorder added in v0.45.4

type WasmBorder struct{}

WasmBorder is a no-op border placeholder.

type WasmColor added in v0.45.4

type WasmColor struct{}

WasmColor is a no-op color placeholder.

type WasmStyle added in v0.45.4

type WasmStyle struct{}

WasmStyle is a no-op style that returns text unchanged.

func (WasmStyle) Render added in v0.45.4

func (s WasmStyle) Render(text ...string) string

Render returns text unchanged.

Jump to

Keyboard shortcuts

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