renderer

package
v0.19.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package renderer provides utilities for rendering configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inflect

func Inflect(format string, args ...any) string

Inflect returns a string with grammatical corrections applied.

Types

type Renderer

type Renderer struct {
	Target io.Writer
	// contains filtered or unexported fields
}

Renderer writes multi-line output to an io.Writer.

func (*Renderer) Done

func (r *Renderer) Done() (int, error)

Done returns the number of bytes written and any error that occurred.

func (*Renderer) EndChild

func (r *Renderer) EndChild()

EndChild decreases the indentation level.

func (*Renderer) Print

func (r *Renderer) Print(str ...string)

Print writes several strings to the output.

func (*Renderer) Printf

func (r *Renderer) Printf(format string, args ...any)

Printf writes a formatted string to the output.

func (*Renderer) StartChild

func (r *Renderer) StartChild()

StartChild increases the indentation level and adds a bullet point.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL