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.
Click to show internal directories.
Click to hide internal directories.