Skip to content

Commit

Permalink
*: update import paths "go.etcd.io/bbolt"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Aug 28, 2018
1 parent 82839da commit 76a4670
Show file tree
Hide file tree
Showing 40 changed files with 49 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unused:

# go get github.com/kisielk/errcheck
errcheck:
@errcheck -ignorepkg=bytes -ignore=os:Remove github.com/etcd-io/bbolt
@errcheck -ignorepkg=bytes -ignore=os:Remove go.etcd.io/bbolt

test:
go test -timeout 20m -v -coverprofile cover.out -covermode atomic
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Shopify and Heroku use Bolt-backed services every day.
To start using Bolt, install Go and run `go get`:

```sh
$ go get github.com/etcd-io/bbolt/...
$ go get go.etcd.io/bbolt/...
```

This will retrieve the library and install the `bolt` command line utility into
Expand All @@ -94,7 +94,7 @@ package main
import (
"log"

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

func main() {
Expand Down Expand Up @@ -537,7 +537,7 @@ this from a read-only transaction, it will perform a hot backup and not block
your other database reads and writes.

By default, it will use a regular file handle which will utilize the operating
system's page cache. See the [`Tx`](https://godoc.org/github.com/etcd-io/bbolt#Tx)
system's page cache. See the [`Tx`](https://godoc.org/go.etcd.io/bbolt#Tx)
documentation for information about optimizing for larger-than-RAM datasets.

One common use case is to backup over HTTP so you can use tools like `cURL` to
Expand Down
2 changes: 1 addition & 1 deletion allocate_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion bolt_386.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x7FFFFFFF // 2GB
Expand Down
2 changes: 1 addition & 1 deletion bolt_amd64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
Expand Down
2 changes: 1 addition & 1 deletion bolt_arm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import "unsafe"

Expand Down
2 changes: 1 addition & 1 deletion bolt_arm64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build arm64

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
Expand Down
2 changes: 1 addition & 1 deletion bolt_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion bolt_mips64x.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build mips64 mips64le

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x8000000000 // 512GB
Expand Down
2 changes: 1 addition & 1 deletion bolt_mipsx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build mips mipsle

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x40000000 // 1GB
Expand Down
2 changes: 1 addition & 1 deletion bolt_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion bolt_ppc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ppc

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x7FFFFFFF // 2GB
Expand Down
2 changes: 1 addition & 1 deletion bolt_ppc64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ppc64

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
Expand Down
2 changes: 1 addition & 1 deletion bolt_ppc64le.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ppc64le

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
Expand Down
2 changes: 1 addition & 1 deletion bolt_s390x.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build s390x

package bolt
package bbolt

// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
Expand Down
2 changes: 1 addition & 1 deletion bolt_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows,!plan9,!solaris

package bolt
package bbolt

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion bolt_unix_solaris.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion bolt_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion boltsync_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows,!plan9,!linux,!openbsd

package bolt
package bbolt

// fdatasync flushes written data to a file descriptor.
func fdatasync(db *DB) error {
Expand Down
2 changes: 1 addition & 1 deletion bucket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions bucket_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand All @@ -13,7 +13,7 @@ import (
"testing"
"testing/quick"

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

// Ensure that a bucket that gets a non-existent key returns nil.
Expand Down
2 changes: 1 addition & 1 deletion cmd/bolt/main.go → cmd/bbolt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"unicode/utf8"
"unsafe"

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

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/bolt/main_test.go → cmd/bbolt/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (
"strconv"
"testing"

"github.com/etcd-io/bbolt"
"github.com/etcd-io/bbolt/cmd/bolt"
bolt "go.etcd.io/bbolt"
)

// Ensure the "info" command can print information about a database.
Expand Down
2 changes: 1 addition & 1 deletion cursor.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions cursor_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand All @@ -11,7 +11,7 @@ import (
"testing"
"testing/quick"

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

// Ensure that a cursor can return a reference to the bucket that created it.
Expand Down
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"errors"
Expand Down
4 changes: 2 additions & 2 deletions db_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand All @@ -18,7 +18,7 @@ import (
"time"
"unsafe"

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

var statsFlag = flag.Bool("stats", false, "show performance stats")
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Package bolt implements a low-level key/value store in pure Go. It supports
package bbolt implements a low-level key/value store in pure Go. It supports
fully serializable transactions, ACID semantics, and lock-free MVCC with
multiple readers and a single writer. Bolt can be used for projects that
want a simple data store without the need to add large dependencies such as
Expand Down Expand Up @@ -41,4 +41,4 @@ point to different data or can point to invalid memory which will cause a panic.
*/
package bolt
package bbolt
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import "errors"

Expand Down
2 changes: 1 addition & 1 deletion freelist.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion freelist_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"math/rand"
Expand Down
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion node_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion page.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion page_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion quick_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions simulation_no_freelist_sync_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bolt_test
package bbolt_test

import (
"testing"

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

func TestSimulateNoFreeListSync_1op_1p(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions simulation_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand All @@ -7,7 +7,7 @@ import (
"sync"
"testing"

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

func TestSimulate_1op_1p(t *testing.T) { testSimulate(t, nil, 1, 1, 1) }
Expand Down
2 changes: 1 addition & 1 deletion tx.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt
package bbolt

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions tx_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bolt_test
package bbolt_test

import (
"bytes"
Expand All @@ -8,7 +8,7 @@ import (
"os"
"testing"

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

// TestTx_Check_ReadOnly tests consistency checking on a ReadOnly database.
Expand Down

0 comments on commit 76a4670

Please sign in to comment.