cleaned up some linting issues. Added some badges
This commit is contained in:
parent
2a34006ba7
commit
5eb91537ce
@ -1,4 +1,4 @@
|
||||
scribble
|
||||
Scribble [](https://coveralls.io/github/nanobox-io/golang-scribble?branch=master) [](http://godoc.org/github.com/nanobox-io/golang-scribble) [](https://goreportcard.com/report/github.com/nanobox-io/golang-scribble)
|
||||
--------
|
||||
|
||||
A tiny JSON database in Golang
|
||||
|
10
scribble.go
10
scribble.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user