github.com/siongui/godom (go): Package godom aims to make DOM manipulation in Go as similar to JavaScript as possible. The Go code is compiled to JavaScript via GopherJS. This package is used for front-end programming.  You can import godom as follows:  Access dom element with id="foo" as follows:  Or  If something is not implemented in this library, you can use methods of *js.Object of GopherJS to manipulate JavaScript DOM API directly.  For example, if **textContent** property of foo is not implemented, you can use Get method of *js.Object in GopherJS to get the **textContent** property as follows:  If some DOM method is not implemented, you can use Call method provided by *js.Object in GopherJS. For example, if foo is an audio element and **play** method of foo is not implemented. You can use Call method of *js.Object in GopherJS to call **play** method of DOM audio element directly.  You can also read the godoc of GopherJS:
Keywords: dom-manipulation|frontend|go|golang|gopherjs