ui

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Overview

Package ui holds the user-owned Go state for the store-persistence example. GOWDK never touches this struct; it only serializes its declared fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartState

type CartState struct {
	Count int
}

CartState is the cart store's Go type. When the page store opts into persist "local", only these declared fields are written to browser storage, keyed by their exported Go field name (so the seed and persisted blob use "Count", not a json tag).

func NewCartState

func NewCartState() CartState

NewCartState is the build-time initializer for the cart store.

Jump to

Keyboard shortcuts

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