Skip to content
Go Lang Web Assembly bindings for DOM, HTML etc
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
appmanifest adding missing dictionaries and documentation Jul 16, 2019
backgroundtask spelling + removal of unused Release-interface Jul 16, 2019
clipboard adding missing dictionaries and documentation Jul 16, 2019
communication adding missing dictionaries and documentation Jul 16, 2019
cookie
core
crypto adding missing dictionaries and documentation Jul 16, 2019
csp spelling + removal of unused Release-interface Jul 16, 2019
css adding missing dictionaries and documentation Jul 16, 2019
device adding missing dictionaries and documentation Jul 16, 2019
dom
featurepolicy spelling + removal of unused Release-interface Jul 16, 2019
fetch spelling + removal of unused Release-interface Jul 16, 2019
file spelling + removal of unused Release-interface Jul 16, 2019
graphics
html adding missing dictionaries and documentation Jul 16, 2019
indexeddb spelling + removal of unused Release-interface Jul 16, 2019
javascript adding missing dictionaries and documentation Jul 16, 2019
media adding missing dictionaries and documentation Jul 16, 2019
notification
patch
payment adding missing dictionaries and documentation Jul 16, 2019
performance spelling + removal of unused Release-interface Jul 16, 2019
push spelling + removal of unused Release-interface Jul 16, 2019
reporting adding missing dictionaries and documentation Jul 16, 2019
serviceworker adding missing dictionaries and documentation Jul 16, 2019
share spelling + removal of unused Release-interface Jul 16, 2019
storage spelling + removal of unused Release-interface Jul 16, 2019
url spelling + removal of unused Release-interface Jul 16, 2019
webidl spelling + removal of unused Release-interface Jul 16, 2019
worklets spelling + removal of unused Release-interface Jul 16, 2019
.gitignore Initial commit Feb 8, 2019
LICENSE Initial commit Feb 8, 2019
README.md
doc.go more package doc updates Feb 21, 2019
example_test.go
webapi.go adding device/sensor Jul 16, 2019
webapi_js.go adding device/sensor Jul 16, 2019

README.md

WebAPI

Go Language Web Assembly bindings for DOM, HTML etc

GoDoc

WARNING: The current API is in very early state and should be consider to be expremental. There is upcommig changed like moving types into multiple packages.

This library is trying to be feature complete and up to date with current standard to let everything a browser having to offect be available in WebAssembly in a Go API accessable. To achive this most of the code is generated from WebIDL files. WebIDL files can be found in different standard making it easiser to be up to date than handwritten binding code.

Example:

func main() {
    element := webapiall.GetWindow().Document().GetElementById("foo")
    // NOTE: After Go 1.12, the extra call to JSValue() will no loger   be needed
    button := webapiall.HTMLButtonElementFromJS(element.JSValue())
    button.SetValue("Hello World")
}

Roadmap

Milestone Status Description
1 Ongoing Be abto to read and and understand all of WebIDL syntax. Notible missing thing are namespace and union
2 Planned Easy up the syntax. Promise will be refactor and other places where simplifications can be done. Classes can be renamed like clipboard.ClipboardPermission to clipboard.Permission.
3 Planned API Stability with a predefined release schedule. Documentation and added examples

More infomation of missing stuff can be found on the generator status info.

You can’t perform that action at this time.