Versions in this module Expand all Collapse all v0 v0.4.2 Apr 23, 2026 v0.4.1 Apr 23, 2026 v0.4.0 Apr 23, 2026 Changes in this version + func Render(sb *strings.Builder, str string, styles []Style) + type ByteTok byte + func (ByteTok) Type() Type + func (b ByteTok) Build(sb *strings.Builder) + type CommentPtrTok uintptr + func (CommentPtrTok) Type() Type + func (p CommentPtrTok) Build(sb *strings.Builder) + type ComplexTok struct + Bits int + V complex128 + func (ComplexTok) Type() Type + func (c ComplexTok) Build(sb *strings.Builder) + type Float64Tok float64 + func (Float64Tok) Type() Type + func (f Float64Tok) Build(sb *strings.Builder) + type FloatTok struct + Bits int + V float64 + func (FloatTok) Type() Type + func (f FloatTok) Build(sb *strings.Builder) + type IntTok int64 + func (IntTok) Type() Type + func (n IntTok) Build(sb *strings.Builder) + type Lit struct + L string + T Type + func (l *Lit) Build(sb *strings.Builder) + func (l *Lit) Type() Type + type PtrTok uintptr + func (PtrTok) Type() Type + func (p PtrTok) Build(sb *strings.Builder) + type RuneTok rune + func (RuneTok) Type() Type + func (r RuneTok) Build(sb *strings.Builder) + type Styled struct + Inner Token + Styles []Style + func (s Styled) Build(sb *strings.Builder) + func (s Styled) Type() Type type Token + Build func(sb *strings.Builder) + type UintTok uint64 + func (UintTok) Type() Type + func (n UintTok) Build(sb *strings.Builder) v0.3.2 Apr 18, 2026 v0.3.1 Apr 18, 2026 Changes in this version + const SymbolRune type Type + const RuneInt32 v0.3.0 Nov 3, 2025 Changes in this version + const SymbolGopError + var DefaultOptions = Options + func GopError(msg string) error + type Options struct + MaxDepth int type Token + func TokenizeWithOptions(v interface{}, opts Options) []*Token v0.2.0 Sep 21, 2023 v0.1.0 Sep 1, 2023 v0.0.3 May 7, 2023 Changes in this version + const SymbolBase64 + const SymbolCircular + const SymbolDuration + const SymbolJSONBytes + const SymbolJSONStr + const SymbolPtr + const SymbolTime + var BgBlack = addStyle(40, 49) + var BgBlue = addStyle(44, 49) + var BgCyan = addStyle(46, 49) + var BgGreen = addStyle(42, 49) + var BgMagenta = addStyle(45, 49) + var BgRed = addStyle(41, 49) + var BgWhite = addStyle(47, 49) + var BgYellow = addStyle(43, 49) + var Black = addStyle(30, 39) + var Blink = addStyle(5, 25) + var Blue = addStyle(34, 39) + var Bold = addStyle(1, 22) + var Cyan = addStyle(36, 39) + var Faint = addStyle(2, 22) + var Green = addStyle(32, 39) + var Hide = addStyle(8, 28) + var Invert = addStyle(7, 27) + var Italic = addStyle(3, 23) + var LongBytesLen = 16 + var LongStringLen = 16 + var Magenta = addStyle(35, 39) + var NoStyle = func() bool { ... }() + var None = Style + var RapidBlink = addStyle(6, 26) + var Red = addStyle(31, 39) + var RegANSI = regexp.MustCompile(`\x1b\[\d+m`) + var Stdout io.Writer = os.Stdout + var Strike = addStyle(9, 29) + var ThemeDefault = func(t Type) []Style + var ThemeNone = func(t Type) []Style + var Underline = addStyle(4, 24) + var White = addStyle(37, 39) + var Yellow = addStyle(33, 39) + func Base64(s string) []byte + func Circular(path ...interface{}) interface + func Duration(s string) time.Duration + func F(v interface{}) string + func FixNestedStyle(s string) string + func Format(ts []*Token, theme Theme) string + func GetPrivateField(v reflect.Value, i int) reflect.Value + func GetPrivateFieldByName(v reflect.Value, name string) reflect.Value + func JSONBytes(v interface{}, raw string) []byte + func JSONStr(v interface{}, raw string) string + func P(values ...interface{}) error + func Plain(v interface{}) string + func Ptr(v interface{}) interface + func S(str string, styles ...Style) string + func StripANSI(str string) string + func Stylize(str string, styles []Style) string + func Time(s string, monotonic int) time.Time + func VisualizeANSI(str string) string + type Style struct + Set string + Unset string + func GetStyle(s string) Style + type Theme func(t Type) []Style + type Token struct + Literal string + Type Type + func Tokenize(v interface{}) []*Token + type Type int + const And + const Bool + const Byte + const Chan + const Colon + const Comma + const Comment + const Complex + const Dot + const Error + const Float + const Func + const InlineComma + const MapClose + const MapKey + const MapOpen + const Nil + const Number + const ParenClose + const ParenOpen + const Rune + const SliceClose + const SliceItem + const SliceOpen + const String + const StructClose + const StructField + const StructKey + const StructOpen + const TypeName v0.0.2 Apr 23, 2023 v0.0.1 Feb 8, 2023