From 9d07787d9f24e6ee51e5eec094afe74441e8f9eb Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 11 Aug 2017 13:41:18 -0700 Subject: [PATCH 1/2] README: add goreportcard badge Signed-off-by: Gyu-Ho Lee --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cce5686..ba31d46 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Bolt ==== -[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/coreos/bbolt) +[![Go Report Card](https://goreportcard.com/badge/github.com/coreos/bbolt?style=flat-square)](https://goreportcard.com/report/github.com/coreos/bbolt) [![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/coreos/bbolt) Bolt is a pure Go key/value store inspired by [Howard Chu's][hyc_symas] [LMDB project][lmdb]. The goal of the project is to provide a simple, From c3092301afc605f17c6cb21cdee6f14e14c7b1b1 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 11 Aug 2017 13:47:10 -0700 Subject: [PATCH 2/2] *: go vet fixes Signed-off-by: Gyu-Ho Lee --- bucket_test.go | 1 + cmd/bolt/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket_test.go b/bucket_test.go index a06a3e6..b7ce32c 100644 --- a/bucket_test.go +++ b/bucket_test.go @@ -113,6 +113,7 @@ func TestBucket_Get_Capacity(t *testing.T) { // Ensure slice can be appended to without a segfault. k = append(k, []byte("123")...) v = append(v, []byte("123")...) + _, _ = k, v // to pass ineffassign return nil }); err != nil { diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 7cd36ff..aca4398 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -146,7 +146,7 @@ The commands are: buckets print a list of buckets check verifies integrity of bolt database compact copies a bolt database, compacting it in the process - dump print a hexidecimal dump of a single page + dump print a hexadecimal dump of a single page get print the value of a key in a bucket info print basic info keys print a list of keys in a bucket