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 FallbackParser ¶
type FallbackParser func(key, value []byte) (SchemaEntry, Parser)
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 ¶
type Parser func(key, value []byte) (SchemaEntry, Parser, error)
var RawParser Parser = rawParser
func WithFallback ¶
func WithFallback(parser Parser, fallback FallbackParser) Parser
func (Parser) ToFallbackParser ¶
func (p Parser) ToFallbackParser() FallbackParser
type RawEntry ¶
type RawEntry struct {
// contains filtered or unexported fields
}
func (*RawEntry) DetailedString ¶
type SchemaEntry ¶
type SchemaEntry interface { String() string DetailedString() string Filter(typ string, val any) FilterResult }
Click to show internal directories.
Click to hide internal directories.