Documentation ¶
Rendered for js/wasm
Overview ¶
Package log contains shared logging code
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 SetChecked(query string, checked bool) FormatTime(utcSeconds int64) string CloneElement(query string) js.Value RegisterFuncs(ctx context.Context, wg *sync.WaitGroup, parentName string, jsFuncs map[string]js.Func) NewJsFunc(fn func()) js.Func }
DOM interacts with the page.
type Log ¶
type Log struct { // TimeFunc is a function which should supply the current time since the unix epoch. // This is used for logging message timestamps TimeFunc func() int64 // contains filtered or unexported fields }
Log manages messages for the log div.
Click to show internal directories.
Click to hide internal directories.