Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit 391c1c4

Browse files
authored
Merge pull request #51 from SilbinaryWolf/fix-v2-to-v3-references
Update documentation and cmd to use v3 instead of v2
2 parents 956dbdf + fcbf536 commit 391c1c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ The exceptions are listed [here](https://github.com/olebedev/go-duktape/blob/mas
66
### Usage
77

88
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.
1010

1111

1212
```go
1313
package main
1414

1515
import "fmt"
16-
import "gopkg.in/olebedev/go-duktape.v2"
16+
import "gopkg.in/olebedev/go-duktape.v3"
1717

1818
func main() {
1919
ctx := duktape.New()
@@ -35,7 +35,7 @@ However, binding a Go function to the Javascript context is available:
3535
package main
3636

3737
import "fmt"
38-
import "gopkg.in/olebedev/go-duktape.v2"
38+
import "gopkg.in/olebedev/go-duktape.v3"
3939

4040
func main() {
4141
ctx := duktape.New()
@@ -60,7 +60,7 @@ There is a method to inject timers to the global scope:
6060
package main
6161

6262
import "fmt"
63-
import "gopkg.in/olebedev/go-duktape.v2"
63+
import "gopkg.in/olebedev/go-duktape.v3"
6464

6565
func main() {
6666
ctx := duktape.New()
@@ -93,7 +93,7 @@ Also you can `FlushTimers()`.
9393

9494
### Command line tool
9595

96-
Install `go get gopkg.in/olebedev/go-duktape.v2/...`.
96+
Install `go get gopkg.in/olebedev/go-duktape.v3/...`.
9797
Execute file.js: `$GOPATH/bin/go-duk file.js`.
9898

9999
### Benchmarks

cmd/go-duk/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"os"
77

8-
"gopkg.in/olebedev/go-duktape.v2"
8+
"gopkg.in/olebedev/go-duktape.v3"
99
)
1010

1111
func main() {

0 commit comments

Comments
 (0)