Documentation ¶
Index ¶
- func Empty(RenderContext) error
- func Indentation(ctx RenderContext) error
- func NewLine(ctx RenderContext) error
- func Space(ctx RenderContext) error
- type LiteralTypes
- type RenderContext
- type Renderer
- func AllFrom(rs seqs.Seq[Renderer]) Renderer
- func AllOf(rs ...Renderer) Renderer
- func ArrowMap(v map[string]string, keyRenderer func(string) Renderer, ...) Renderer
- func Error(err error) Renderer
- func Formatted(format string, args ...any) Renderer
- func If(cond bool, r Renderer) Renderer
- func Indented(r Renderer) Renderer
- func Line(r Renderer) Renderer
- func Literal[T LiteralTypes](v T) Renderer
- func Quoted(s string) Renderer
- func SpaceSeparated(rs ...Renderer) Renderer
- func String(s string) Renderer
- func StringList(stringList []string) Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Empty ¶
func Empty(RenderContext) error
func Indentation ¶
func Indentation(ctx RenderContext) error
func NewLine ¶
func NewLine(ctx RenderContext) error
func Space ¶
func Space(ctx RenderContext) error
Types ¶
type LiteralTypes ¶
type LiteralTypes interface { bool | string | constraints.Float | constraints.Integer }
type Renderer ¶
type Renderer = func(ctx RenderContext) error
func ArrowMap ¶
func ArrowMap(v map[string]string, keyRenderer func(string) Renderer, valueRenderer func(string) Renderer) Renderer
ArrowMap renders a map as a key=>value style map used at various places of the config grammar
func Literal ¶
func Literal[T LiteralTypes](v T) Renderer
func SpaceSeparated ¶
func StringList ¶
Click to show internal directories.
Click to hide internal directories.