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

Commit

Permalink
Change import path for the package
Browse files Browse the repository at this point in the history
Now import path is `gopkg.in/olebedev/go-duktape.v1`. How it works see
here http://labix.org/gopkg.in
  • Loading branch information
olebedev committed Oct 8, 2015
1 parent 4b521da commit e2ae92f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ Most of the [api](http://duktape.org/api.html) is implemented.
The exceptions are listed [here](https://github.com/olebedev/go-duktape/blob/master/api.go#L1679).

### Usage

The package is fully go-getable, no need to install any external C libraries.
So, just type `go get gopkg.in/olebedev/go-duktape.v1` to install.


```go
package main

import "fmt"
import "github.com/olebedev/go-duktape"
import "gopkg.in/olebedev/go-duktape.v1"

func main() {
ctx := duktape.New()
Expand All @@ -27,7 +32,7 @@ However, binding a Go function to the Javascript context is available:
package main

import "fmt"
import "github.com/olebedev/go-duktape"
import "gopkg.in/olebedev/go-duktape.v1"

func main() {
ctx := duktape.New()
Expand All @@ -47,12 +52,12 @@ $

### Timers

There is a method to inject to the global scope implemented in Go timers:
There is a method to inject timers to the global scope:
```go
package main

import "fmt"
import "github.com/olebedev/go-duktape"
import "gopkg.in/olebedev/go-duktape.v1"

func main() {
ctx := duktape.New()
Expand Down

0 comments on commit e2ae92f

Please sign in to comment.