Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a functional option for configuring a Renderer.
func WithIndent ¶
WithIndent sets the indentation string for JSON output.
type Renderer ¶
type Renderer[T any] struct { // contains filtered or unexported fields }
Renderer provides a generic interface for rendering values as JSON.
func NewRenderer ¶
NewRenderer creates a new JSON renderer with the given options.
Click to show internal directories.
Click to hide internal directories.