cleaned up some linting issues. Added some badges

This commit is contained in:
Steve Domino 2017-02-09 16:28:08 -07:00
parent 2a34006ba7
commit 5eb91537ce
3 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
scribble
Scribble [![Coverage Status](https://coveralls.io/repos/github/nanobox-io/golang-scribble/badge.svg?branch=master)](https://coveralls.io/github/nanobox-io/golang-scribble?branch=master) [![GoDoc](https://godoc.org/github.com/boltdb/bolt?status.svg)](http://godoc.org/github.com/nanobox-io/golang-scribble) [![Go Report Card](https://goreportcard.com/badge/github.com/nanobox-io/golang-scribble)](https://goreportcard.com/report/github.com/nanobox-io/golang-scribble)
--------
A tiny JSON database in Golang

View File

@ -1,21 +1,23 @@
// scribble is a tiny JSON database
// Package scribble is a tiny JSON database
package scribble
import (
"encoding/json"
"fmt"
"github.com/jcelliott/lumber"
"io/ioutil"
"os"
"path/filepath"
"sync"
"github.com/jcelliott/lumber"
)
// Version is the current version of the project
const Version = "1.0.4"
type (
//
// Logger is a generic logger interface
Logger interface {
Fatal(string, ...interface{})
Error(string, ...interface{})
@ -25,7 +27,7 @@ type (
Trace(string, ...interface{})
}
// a Driver is what is used to interact with the scribble database. It runs
// Driver is what is used to interact with the scribble database. It runs
// transactions, and provides log output
Driver struct {
mutex sync.Mutex