Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncMap ¶
FuncMap is a map of functions that you want available for being called inside of HTML
type Oasis ¶
type Oasis struct {
// contains filtered or unexported fields
}
Oasis is used for configuring the client's available WASM functionality
func (*Oasis) AddFuncMap ¶
AddFuncMap allows you to add an entire FuncMap to o so that multiple functions can be added at once
func (*Oasis) AddToFuncMap ¶
AddToFuncMap adds a function with the given name to o. If o doesn't have any functions added yet, it will create an underlying map to hold the newly added function
func (*Oasis) Run ¶
func (o *Oasis) Run()
Run should be called after your Oasis has been configured. This will register all funcs in the FuncMap held by the Oasis and make them available to be used as functions for values of attributes of HTML elements. It will log an error if no functions were added to the FuncMap before being called and then exit