Skip to content

Commit

Permalink
Merge pull request #12 from kwiesmueller/master
Browse files Browse the repository at this point in the history
switch to bbolt
  • Loading branch information
djherbis committed Dec 18, 2018
2 parents b3d815e + 7aa5ec7 commit 59f73ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -11,7 +11,7 @@ Stow
Usage
------------

This package provides a persistence manager for objects backed by boltdb.
This package provides a persistence manager for objects backed by [bbolt (orig. boltdb)](https://github.com/etcd-io/bbolt).

```go
package main
Expand All @@ -21,12 +21,12 @@ import (
"fmt"
"log"

"github.com/boltdb/bolt"
bolt "go.etcd.io/bbolt"
"gopkg.in/djherbis/stow.v2"
)

func main() {
// Create a boltdb database
// Create a boltdb (bbolt fork) database
db, err := bolt.Open("my.db", 0600, nil)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -79,5 +79,5 @@ func init() {
Installation
------------
```sh
go get gopkg.in/djherbis/stow.v2
go get gopkg.in/djherbis/stow.v3
```
2 changes: 1 addition & 1 deletion store.go
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"sync"

"github.com/boltdb/bolt"
bolt "go.etcd.io/bbolt"
)

var pool = &sync.Pool{
Expand Down
2 changes: 1 addition & 1 deletion stow_test.go
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"testing"

"github.com/boltdb/bolt"
bolt "go.etcd.io/bbolt"
)

type MyType struct {
Expand Down

0 comments on commit 59f73ac

Please sign in to comment.