component

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Render(context.Context) (string, error)
}

Component is the runtime contract for generated components.

type Func

type Func func(context.Context) (string, error)

Func adapts a render function into a Component.

func (Func) Render

func (fn Func) Render(ctx context.Context) (string, error)

Render calls the wrapped component function.

Jump to

Keyboard shortcuts

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