Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(s string, opts FormatOptions) string
func FormatSimple ¶
Types ¶
type Entry ¶
type Entry interface { String() string DetailedString() string Filter(typ string, val any) FilterResult }
type FallbackParser ¶
func (FallbackParser) ToParser ¶
func (fp FallbackParser) ToParser() Parser
type FilterResult ¶
type FilterResult byte
const ( No FilterResult = iota Maybe Yes )
func IfThenElse ¶
func IfThenElse(condition bool, onSuccess, onFailure FilterResult) FilterResult
type FormatOptions ¶
type FormatOptions struct { Color tcell.Color Bold, Italic, Underline, StrikeThrough bool }
type Parser ¶
var RawParser Parser = rawParser
func WithFallback ¶
func WithFallback(parser Parser, fallback FallbackParser) Parser
func (Parser) ToFallbackParser ¶
func (p Parser) ToFallbackParser() FallbackParser
Click to show internal directories.
Click to hide internal directories.