Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2026 Changes in this version + func Escape(s string) string + func FromJSON(data []byte, v any) error + func ToJSON(v any) ([]byte, error) + func ToJSONCompact(v any) ([]byte, error) + type Format string + const FormatJSON + const FormatJSONCompact + const FormatMarkdown + const FormatTOON + const FormatText + func ParseFormat(s string) Format + func (f Format) FileExtension() string + func (f Format) String() string + type MarkdownBuilder struct + func NewMarkdownBuilder() *MarkdownBuilder + func (b *MarkdownBuilder) Blockquote(text string) + func (b *MarkdownBuilder) Bold(text string) + func (b *MarkdownBuilder) BulletList(items []string) + func (b *MarkdownBuilder) Bytes() []byte + func (b *MarkdownBuilder) Checkbox(checked bool, text string) + func (b *MarkdownBuilder) Code(text string) + func (b *MarkdownBuilder) CodeBlock(language, code string) + func (b *MarkdownBuilder) H1(text string) + func (b *MarkdownBuilder) H2(text string) + func (b *MarkdownBuilder) H3(text string) + func (b *MarkdownBuilder) H4(text string) + func (b *MarkdownBuilder) HorizontalRule() + func (b *MarkdownBuilder) Image(alt, url string) + func (b *MarkdownBuilder) Italic(text string) + func (b *MarkdownBuilder) Link(text, url string) + func (b *MarkdownBuilder) Newline() + func (b *MarkdownBuilder) NumberedList(items []string) + func (b *MarkdownBuilder) Paragraph(text string) + func (b *MarkdownBuilder) Reset() + func (b *MarkdownBuilder) String() string + func (b *MarkdownBuilder) Table(headers []string, rows [][]string) + func (b *MarkdownBuilder) Text(text string) + type TOONBuilder struct + func NewTOONBuilder() *TOONBuilder + func (b *TOONBuilder) Bytes() []byte + func (b *TOONBuilder) Dedent() + func (b *TOONBuilder) Field(key string, value any) + func (b *TOONBuilder) FieldIf(key string, value string) + func (b *TOONBuilder) Header(name string) + func (b *TOONBuilder) Indent() + func (b *TOONBuilder) List(items []string) + func (b *TOONBuilder) ListItem(item string) + func (b *TOONBuilder) Newline() + func (b *TOONBuilder) String() string