This repository was archived by the owner on Oct 29, 2021. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ The exceptions are listed [here](https://github.com/olebedev/go-duktape/blob/mas
6
6
### Usage
7
7
8
8
The package is fully go-getable, no need to install any external C libraries.
9
- So, just type ` go get gopkg.in/olebedev/go-duktape.v2 ` to install.
9
+ So, just type ` go get gopkg.in/olebedev/go-duktape.v3 ` to install.
10
10
11
11
12
12
``` go
13
13
package main
14
14
15
15
import " fmt"
16
- import " gopkg.in/olebedev/go-duktape.v2 "
16
+ import " gopkg.in/olebedev/go-duktape.v3 "
17
17
18
18
func main () {
19
19
ctx := duktape.New ()
@@ -35,7 +35,7 @@ However, binding a Go function to the Javascript context is available:
35
35
package main
36
36
37
37
import " fmt"
38
- import " gopkg.in/olebedev/go-duktape.v2 "
38
+ import " gopkg.in/olebedev/go-duktape.v3 "
39
39
40
40
func main () {
41
41
ctx := duktape.New ()
@@ -60,7 +60,7 @@ There is a method to inject timers to the global scope:
60
60
package main
61
61
62
62
import " fmt"
63
- import " gopkg.in/olebedev/go-duktape.v2 "
63
+ import " gopkg.in/olebedev/go-duktape.v3 "
64
64
65
65
func main () {
66
66
ctx := duktape.New ()
@@ -93,7 +93,7 @@ Also you can `FlushTimers()`.
93
93
94
94
### Command line tool
95
95
96
- Install ` go get gopkg.in/olebedev/go-duktape.v2 /... ` .
96
+ Install ` go get gopkg.in/olebedev/go-duktape.v3 /... ` .
97
97
Execute file.js: ` $GOPATH/bin/go-duk file.js ` .
98
98
99
99
### Benchmarks
Original file line number Diff line number Diff line change 5
5
"log"
6
6
"os"
7
7
8
- "gopkg.in/olebedev/go-duktape.v2 "
8
+ "gopkg.in/olebedev/go-duktape.v3 "
9
9
)
10
10
11
11
func main () {
You can’t perform that action at this time.
0 commit comments