Documentation ¶
Rendered for js/wasm
Overview ¶
Package user contains code to create and edit users that can play games in the lobby.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DOM ¶ added in v1.2.0
type DOM interface { QuerySelector(query string) js.Value QuerySelectorAll(document js.Value, query string) []js.Value Checked(query string) bool SetChecked(query string, checked bool) Value(query string) string SetValue(query, value string) Confirm(message string) bool NewXHR() js.Value Base64Decode(a string) []byte StoreCredentials(form js.Value) EncodeURIComponent(str string) string RegisterFuncs(ctx context.Context, wg *sync.WaitGroup, parentName string, jsFuncs map[string]js.Func) NewJsEventFunc(fn func(event js.Value)) js.Func NewJsEventFuncAsync(fn func(event js.Value), async bool) js.Func }
DOM interacts with the page.
type HTTPRequester ¶ added in v1.2.0
HTTPRequester does HTTP requests.
type Socket ¶
type Socket interface {
Close()
}
Socket is a structure that the user interacts with for the lobby and game.
Click to show internal directories.
Click to hide internal directories.