Versions in this module Expand all Collapse all v0 v0.0.1 Mar 14, 2026 Changes in this version + func ClassIdProps(class, id string) map[string]interface + func ClassProps(class string) map[string]interface + func EmptyProps() map[string]interface + func EnqueueUI(fn func()) + func GetUIQueueSize() int + func GoUseAtomGlobal[T any](id string, initialValue T) (func() T, func(T)) — js/wasm + func GoUseAtom[T any](rt *Runtime, id string, initialValue T) (func() T, func(interface{})) + func GoUseCallback(fn interface{}, deps ...interface{}) interface + func GoUseCallbackGlobal(fn interface{}, deps ...interface{}) interface — js/wasm + func GoUseEffect(effect func() func(), deps ...interface{}) + func GoUseEffectGlobal(effect func() func(), deps ...interface{}) — js/wasm + func GoUseFetch(url string, options ...interface{}) (func() FetchState, func()) + func GoUseFetchGlobal(url string, options ...interface{}) (func() FetchState, func()) — js/wasm + func GoUseFunc(fn interface{}) interface + func GoUseFuncGlobal(fn interface{}) interface — js/wasm + func GoUseId() string + func GoUseIdGlobal() string — js/wasm + func GoUseMemo(compute func() interface{}, deps ...interface{}) interface + func GoUseMemoGlobal(compute func() interface{}, deps ...interface{}) interface — js/wasm + func GoUseStateGlobal[T any](initialValue T) (func() T, func(interface{})) — js/wasm + func GoUseState[T any](rt *Runtime, initialValue T) (func() T, func(interface{})) + func HrefProps(href string) map[string]interface + func IdProps(id string) map[string]interface + func InitGlobalRuntime(config Config) + func InputTypeProps(typ string) map[string]interface + func PlaceholderProps(placeholder string) map[string]interface + func ProcessUIQueue() + func SetCurrentFiber(fiber *Fiber) + func SrcProps(src string) map[string]interface + func StyleProps(style string) map[string]interface + func TypeProps(typ string) map[string]interface + func ValueProps(value interface{}) map[string]interface + type AtomRegistry struct + func NewAtomRegistry() *AtomRegistry + func (ar *AtomRegistry) GetAtom(id string) (interface{}, bool) + func (ar *AtomRegistry) GetAtomCount() int + func (ar *AtomRegistry) GetSubscriberCount(atomID string) int + func (ar *AtomRegistry) InitAtom(id string, initialValue interface{}) + func (ar *AtomRegistry) SetAtom(id string, value interface{}) []*Fiber + func (ar *AtomRegistry) Subscribe(atomID string, fiber *Fiber) + func (ar *AtomRegistry) Unsubscribe(atomID string, fiber *Fiber) + func (ar *AtomRegistry) UnsubscribeFiberFromAll(fiber *Fiber) + func (ar *AtomRegistry) UnsubscribeMany(atomIDs []string, fiber *Fiber) + type Attrs map[string]interface + type BrowserState interface + GetCurrentPath func() string + GetHash func() string + GetItem func(key string) (string, bool) + OnPopState func(callback func(path string)) + PushState func(state interface{}, title, url string) + Reload func() + RemoveItem func(key string) + ReplaceState func(state interface{}, title, url string) + SetHash func(hash string) + SetItem func(key, value string) error + type Config struct + BrowserState BrowserState + DOMAdapter DOMAdapter + EventAdapter EventAdapter + Scheduler Scheduler + type DOMAdapter interface + AppendChild func(parent, child DOMNode) + CreateElement func(tag string) DOMNode + CreateTextNode func(text string) DOMNode + GetChildren func(node DOMNode) []DOMNode + GetFirstChild func(node DOMNode) DOMNode + GetNextSibling func(node DOMNode) DOMNode + GetParent func(node DOMNode) DOMNode + GetProperty func(node DOMNode, name string) interface{} + InsertBefore func(parent, newNode, referenceNode DOMNode) + RemoveAttribute func(node DOMNode, name string) + RemoveChild func(parent, child DOMNode) + ReplaceChild func(parent, newNode, oldNode DOMNode) + SetAttribute func(node DOMNode, name, value string) + SetInnerHTML func(node DOMNode, html string) + SetProperty func(node DOMNode, name string, value interface{}) + SetStyle func(node DOMNode, property, value string) + SetStyles func(node DOMNode, styles map[string]string) + SetTextContent func(node DOMNode, text string) + WrapFunction func(fn interface{}) interface{} + type DOMNode interface + Equals func(other DOMNode) bool + IsNull func() bool + type Deadline interface + DidTimeout func() bool + TimeRemaining func() float64 + type Effect struct + CleanupIndex int + Fn func() func() + type Element struct + Children []interface{} + Props map[string]interface{} + TextContent string + Type interface{} + func A(props map[string]interface{}, children ...interface{}) *Element + func Abbr(props map[string]interface{}, children ...interface{}) *Element + func Address(props map[string]interface{}, children ...interface{}) *Element + func Article(props map[string]interface{}, children ...interface{}) *Element + func Aside(props map[string]interface{}, children ...interface{}) *Element + func Audio(props map[string]interface{}, children ...interface{}) *Element + func B(props map[string]interface{}, children ...interface{}) *Element + func Bdi(props map[string]interface{}, children ...interface{}) *Element + func Bdo(props map[string]interface{}, children ...interface{}) *Element + func Blockquote(props map[string]interface{}, children ...interface{}) *Element + func Body(props map[string]interface{}, children ...interface{}) *Element + func Br(props map[string]interface{}) *Element + func Button(props map[string]interface{}, children ...interface{}) *Element + func Canvas(props map[string]interface{}, children ...interface{}) *Element + func Caption(props map[string]interface{}, children ...interface{}) *Element + func Circle(props map[string]interface{}) *Element + func Cite(props map[string]interface{}, children ...interface{}) *Element + func Code(props map[string]interface{}, children ...interface{}) *Element + func Col(props map[string]interface{}) *Element + func Colgroup(props map[string]interface{}, children ...interface{}) *Element + func CreateElement(typ interface{}, props map[string]interface{}, children ...interface{}) *Element + func Data(props map[string]interface{}, children ...interface{}) *Element + func Datalist(props map[string]interface{}, children ...interface{}) *Element + func Dd(props map[string]interface{}, children ...interface{}) *Element + func Del(props map[string]interface{}, children ...interface{}) *Element + func Details(props map[string]interface{}, children ...interface{}) *Element + func Dfn(props map[string]interface{}, children ...interface{}) *Element + func Dialog(props map[string]interface{}, children ...interface{}) *Element + func Div(props map[string]interface{}, children ...interface{}) *Element + func DivWithComponents(props map[string]interface{}, ...) *Element + func Dl(props map[string]interface{}, children ...interface{}) *Element + func Dt(props map[string]interface{}, children ...interface{}) *Element + func Em(props map[string]interface{}, children ...interface{}) *Element + func Embed(props map[string]interface{}) *Element + func Fieldset(props map[string]interface{}, children ...interface{}) *Element + func Figcaption(props map[string]interface{}, children ...interface{}) *Element + func Figure(props map[string]interface{}, children ...interface{}) *Element + func Footer(props map[string]interface{}, children ...interface{}) *Element + func Form(props map[string]interface{}, children ...interface{}) *Element + func G(props map[string]interface{}, children ...interface{}) *Element + func H1(props map[string]interface{}, children ...interface{}) *Element + func H2(props map[string]interface{}, children ...interface{}) *Element + func H3(props map[string]interface{}, children ...interface{}) *Element + func H4(props map[string]interface{}, children ...interface{}) *Element + func H5(props map[string]interface{}, children ...interface{}) *Element + func H6(props map[string]interface{}, children ...interface{}) *Element + func Head(props map[string]interface{}, children ...interface{}) *Element + func Header(props map[string]interface{}, children ...interface{}) *Element + func Hgroup(props map[string]interface{}, children ...interface{}) *Element + func Hr(props map[string]interface{}) *Element + func Html(props map[string]interface{}, children ...interface{}) *Element + func I(props map[string]interface{}, children ...interface{}) *Element + func Iframe(props map[string]interface{}, children ...interface{}) *Element + func Img(props map[string]interface{}) *Element + func Input(props map[string]interface{}) *Element + func Ins(props map[string]interface{}, children ...interface{}) *Element + func Kbd(props map[string]interface{}, children ...interface{}) *Element + func Label(props map[string]interface{}, children ...interface{}) *Element + func Legend(props map[string]interface{}, children ...interface{}) *Element + func Li(props map[string]interface{}, children ...interface{}) *Element + func Line(props map[string]interface{}) *Element + func Link(props map[string]interface{}) *Element + func Main(props map[string]interface{}, children ...interface{}) *Element + func MainWithComponents(props map[string]interface{}, ...) *Element + func Mark(props map[string]interface{}, children ...interface{}) *Element + func Menu(props map[string]interface{}, children ...interface{}) *Element + func Meta(props map[string]interface{}) *Element + func Meter(props map[string]interface{}, children ...interface{}) *Element + func Nav(props map[string]interface{}, children ...interface{}) *Element + func Object(props map[string]interface{}, children ...interface{}) *Element + func Ol(props map[string]interface{}, children ...interface{}) *Element + func Optgroup(props map[string]interface{}, children ...interface{}) *Element + func Option(props map[string]interface{}, children ...interface{}) *Element + func Output(props map[string]interface{}, children ...interface{}) *Element + func P(props map[string]interface{}, children ...interface{}) *Element + func Param(props map[string]interface{}) *Element + func Path(props map[string]interface{}) *Element + func Picture(props map[string]interface{}, children ...interface{}) *Element + func Polygon(props map[string]interface{}) *Element + func Portal(props map[string]interface{}, children ...interface{}) *Element + func Pre(props map[string]interface{}, children ...interface{}) *Element + func Progress(props map[string]interface{}, children ...interface{}) *Element + func Q(props map[string]interface{}, children ...interface{}) *Element + func Rect(props map[string]interface{}) *Element + func Rp(props map[string]interface{}, children ...interface{}) *Element + func Rt(props map[string]interface{}, children ...interface{}) *Element + func Ruby(props map[string]interface{}, children ...interface{}) *Element + func S(props map[string]interface{}, children ...interface{}) *Element + func Samp(props map[string]interface{}, children ...interface{}) *Element + func Script(props map[string]interface{}, children ...interface{}) *Element + func Section(props map[string]interface{}, children ...interface{}) *Element + func SectionWithComponents(props map[string]interface{}, ...) *Element + func Select(props map[string]interface{}, children ...interface{}) *Element + func Slot(props map[string]interface{}, children ...interface{}) *Element + func Small(props map[string]interface{}, children ...interface{}) *Element + func Source(props map[string]interface{}) *Element + func Span(props map[string]interface{}, children ...interface{}) *Element + func Strong(props map[string]interface{}, children ...interface{}) *Element + func Style(props map[string]interface{}, children ...interface{}) *Element + func Sub(props map[string]interface{}, children ...interface{}) *Element + func Summary(props map[string]interface{}, children ...interface{}) *Element + func Sup(props map[string]interface{}, children ...interface{}) *Element + func Svg(props map[string]interface{}, children ...interface{}) *Element + func Table(props map[string]interface{}, children ...interface{}) *Element + func Tbody(props map[string]interface{}, children ...interface{}) *Element + func Td(props map[string]interface{}, children ...interface{}) *Element + func Template(props map[string]interface{}, children ...interface{}) *Element + func Text(content string) *Element + func Textarea(props map[string]interface{}, children ...interface{}) *Element + func Tfoot(props map[string]interface{}, children ...interface{}) *Element + func Th(props map[string]interface{}, children ...interface{}) *Element + func Thead(props map[string]interface{}, children ...interface{}) *Element + func Time(props map[string]interface{}, children ...interface{}) *Element + func Title(props map[string]interface{}, children ...interface{}) *Element + func Tr(props map[string]interface{}, children ...interface{}) *Element + func Track(props map[string]interface{}) *Element + func U(props map[string]interface{}, children ...interface{}) *Element + func Ul(props map[string]interface{}, children ...interface{}) *Element + func Var(props map[string]interface{}, children ...interface{}) *Element + func Video(props map[string]interface{}, children ...interface{}) *Element + func Wbr(props map[string]interface{}) *Element + func WithComponents(tagName string, props map[string]interface{}, ...) *Element + type Event interface + GetKey func() string + GetKeyCode func() int + GetTarget func() DOMNode + GetValue func() string + IsChecked func() bool + PreventDefault func() + StopPropagation func() + type EventAdapter interface + AddEventListener func(node DOMNode, eventType string, handler EventHandler) + CreateEventHandler func(fn func(Event)) EventHandler + ReleaseEventHandler func(handler EventHandler) + RemoveEventListener func(node DOMNode, eventType string, handler EventHandler) + type EventHandler interface + Release func() + type FetchState struct + Data interface{} + Error string + Loading bool + type Fiber struct + func GetCurrentFiber() *Fiber + type GoEvent struct — js/wasm + func NewGoEvent(jsEvent js.Value) GoEvent + func (e GoEvent) GetKey() string + func (e GoEvent) GetKeyCode() int + func (e GoEvent) GetTarget() DOMNode + func (e GoEvent) GetValue() string + func (e GoEvent) IsChecked() bool + func (e GoEvent) JSValue() js.Value + func (e GoEvent) PreventDefault() + func (e GoEvent) StopPropagation() + type Hooks struct + type RefValue struct + Current interface{} + func GoUseRef(initialValue interface{}) *RefValue + func GoUseRefGlobal(initialValue interface{}) *RefValue + type Runtime struct + func GetGlobalRuntime() *Runtime + func NewRuntime(config Config) *Runtime + func (rt *Runtime) CleanupAtomSubscriptions(fiber *Fiber) + func (rt *Runtime) GetAtomValue(id string) (interface{}, bool) + func (rt *Runtime) Render(element *Element, container DOMNode) + func (rt *Runtime) RenderTo(selector string, element *Element) + func (rt *Runtime) ScheduleUpdate() + func (rt *Runtime) ScheduleUpdateForFiber(fiber *Fiber) + func (rt *Runtime) SetAtomValue(id string, value interface{}) error + type Scheduler interface + RequestIdleCallback func(callback func(deadline Deadline)) + SetTimeout func(callback func(), delay int) Other modules containing this package github.com/monstercameron/GoWebComponents/v4