events

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

The events example: event declarations in page.ghtmx generate the only emission symbols (ghtmxgen.EmitItemSaved, ghtmxgen.EmitCartCleared) — an undeclared event has no symbol and cannot compile (FR-037). The save handler emits both events in one response; they merge into a single HX-Trigger header.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes() *http.ServeMux

Routes builds the example's router; the official docs site mounts it as a live demo.

Types

type Item

type Item struct {
	ID   string
	Name string
}

Item is a row of the demo table.

Directories

Path Synopsis
Command events serves the events example standalone.
Command events serves the events example standalone.

Jump to

Keyboard shortcuts

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