//go:build js && wasm package ultraviolet type Model map[string]any type Controller map[string]any type ComponentOptions struct { View View Model Model Controller Controller } type Factory interface { NewRoot(options any) Component NewContainer(options any) Component NewText(options any) Component NewButton(options any) Component NewImage(options any) Component NewMarkdown(options any) Component NewFrame(options any) Component NewCode(options any) Component } func NewFactory(platform int) Factory { switch platform { case PLATFORM_WEB: return NewWebFactory() default: return NewWebFactory() } }