Documentation
¶
Index ¶
- Variables
- func DecodeBoolean[T any](_ js.CallbackContext[T], val js.Value[T]) (bool, error)
- func DecodeFunction[T any](cbCtx js.CallbackContext[T], val js.Value[T]) (js.Function[T], error)
- func DecodeHTMLElement[T any](ctx js.CallbackContext[T], val js.Value[T]) (html.HTMLElement, error)
- func DecodeInt[T any](_ js.CallbackContext[T], val js.Value[T]) (int, error)
- func DecodeNode[T any](ctx js.CallbackContext[T], val js.Value[T]) (dom.Node, error)
- func DecodeString[T any](cbCtx js.CallbackContext[T], val js.Value[T]) (string, error)
- func EncodeBoolean[T any](cbCtx js.CallbackScope[T], b bool) (js.Value[T], error)
- func EncodeConstrucedValue[T any](cbCtx js.CallbackScope[T], val any) (js.Value[T], error)
- func EncodeEntity[T any](cbCtx js.CallbackScope[T], e entity.ObjectIder) (js.Value[T], error)
- func EncodeEntityScoped[T any](scope js.Scope[T], e entity.ObjectIder) (js.Value[T], error)
- func EncodeInt[T any](cbCtx js.CallbackScope[T], i int) (js.Value[T], error)
- func EncodeNillableString[T any](cbCtx js.CallbackScope[T], s string, hasValue bool) (js.Value[T], error)
- func EncodeNull[T any](cbCtx js.CallbackScope[T]) (js.Value[T], error)
- func EncodeNullableString[T any](cbCtx js.CallbackScope[T], s *string) (js.Value[T], error)
- func EncodeString[T any](cbCtx js.CallbackScope[T], s string) (js.Value[T], error)
- func EncodeStringScoped[T any](cbCtx js.Scope[T], s string) (js.Value[T], error)
- func LookupJSPrototype(entity entity.ObjectIder) string
- func ZeroValue[T any]() (res T)
- type EventInit
Constants ¶
This section is empty.
Variables ¶
View Source
var HtmlElements = map[string]string{}/* 141 elements not displayed */
Functions ¶
func DecodeBoolean ¶
func DecodeFunction ¶
func DecodeHTMLElement ¶
func DecodeHTMLElement[T any]( ctx js.CallbackContext[T], val js.Value[T], ) (html.HTMLElement, error)
func DecodeNode ¶
func DecodeString ¶
func EncodeBoolean ¶
func EncodeConstrucedValue ¶
EncodeConstrucedValue is a simple helper for JS constructor callbacks to store the constructed Go value in the JavaScript object, and possibly cache it with the script context.
func EncodeEntity ¶
func EncodeEntity[T any](cbCtx js.CallbackScope[T], e entity.ObjectIder) (js.Value[T], error)
getJSInstance gets the JavaScript object that wraps a specific Go object. If a wrapper already has been created, that wrapper is returned; otherwise a new object is created with the correct prototype configured.
func EncodeEntityScoped ¶
TODO: Embed scope in CallbackScope, so only one function is necessary
func EncodeNillableString ¶
func EncodeNull ¶
func EncodeNullableString ¶
func EncodeString ¶
func EncodeStringScoped ¶
TODO: Embed scope in CallbackScope, so only one function is necessary
func LookupJSPrototype ¶
func LookupJSPrototype(entity entity.ObjectIder) string
Types ¶
Click to show internal directories.
Click to hide internal directories.