Skip to content

Commit 5871f0b

Browse files
committed
fixed formatting
1 parent 383fc8b commit 5871f0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ Now you can use `gopherjs build [files]` or `gopherjs install [package]` which
3636
### Getting started
3737
#### Interacting with the DOM
3838
The package `github.com/gopherjs/gopherjs/js` (see [documentation](http://godoc.org/github.com/gopherjs/gopherjs/js)) provides functions for interacting with native JavaScript APIs. For example the line
39+
3940
```js
4041
document.write("Hello world!");
4142
```
43+
4244
would look like this in Go:
45+
4346
```go
4447
js.Global.Get("document").Call("write", "Hello world!")
4548
```
49+
4650
You may also want use the [DOM bindings](http://dominik.honnef.co/go/js/dom), the [jQuery bindings](https://github.com/gopherjs/jquery) (see [TodoMVC Example](https://github.com/gopherjs/todomvc)) or the [AngularJS bindings](https://github.com/gopherjs/go-angularjs). Those are some of the [bindings to JavaScript APIs and libraries](https://github.com/gopherjs/gopherjs/wiki/bindings) by community members.
4751

4852
#### Providing library functions for use in other JavaScript code

0 commit comments

Comments
 (0)