Skip to content

Commit

Permalink
update import path
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Jun 13, 2018
1 parent cb8a2eb commit 6ca44f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
sudo: false
go_import_path: gopkg.in/go-session/buntdb.v1
go_import_path: github.com/go-session/buntdb
go:
- 1.7
before_install:
Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### Download and install

```bash
$ go get -u -v gopkg.in/go-session/buntdb.v1
$ go get -u -v github.com/go-session/buntdb
```

### Create file `server.go`
Expand All @@ -20,15 +20,13 @@ import (
"fmt"
"net/http"

"gopkg.in/go-session/buntdb.v1"
"gopkg.in/session.v2"
"github.com/go-session/buntdb"
"github.com/go-session/session"
)

func main() {
session.InitManager(
session.SetCookieName("session_id"),
session.SetSign([]byte("sign")),
session.SetStore(buntdb.NewMemoryStore()),
session.SetStore(buntdb.NewFileStore("session.db")),
)

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -88,9 +86,9 @@ $ ./server
[Build-Status-Image]: https://travis-ci.org/go-session/buntdb.svg?branch=master
[codecov-url]: https://codecov.io/gh/go-session/buntdb
[codecov-image]: https://codecov.io/gh/go-session/buntdb/branch/master/graph/badge.svg
[reportcard-url]: https://goreportcard.com/report/gopkg.in/go-session/buntdb.v1
[reportcard-image]: https://goreportcard.com/badge/gopkg.in/go-session/buntdb.v1
[godoc-url]: https://godoc.org/gopkg.in/go-session/buntdb.v1
[godoc-image]: https://godoc.org/gopkg.in/go-session/buntdb.v1?status.svg
[reportcard-url]: https://goreportcard.com/report/github.com/go-session/buntdb
[reportcard-image]: https://goreportcard.com/badge/github.com/go-session/buntdb
[godoc-url]: https://godoc.org/github.com/go-session/buntdb
[godoc-image]: https://godoc.org/github.com/go-session/buntdb?status.svg
[license-url]: http://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/npm/l/express.svg
2 changes: 1 addition & 1 deletion buntdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"sync"
"time"

"github.com/go-session/session"
"github.com/json-iterator/go"
"github.com/tidwall/buntdb"
"gopkg.in/session.v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion buntdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/session.v2"
"github.com/go-session/session"

. "github.com/smartystreets/goconvey/convey"
)
Expand Down

0 comments on commit 6ca44f0

Please sign in to comment.