cleaned up some linting issues. Added some badges
This commit is contained in:
parent
2a34006ba7
commit
5eb91537ce
2
LICENSE
2
LICENSE
|
@ -337,4 +337,4 @@ Mozilla Public License, version 2.0
|
||||||
Licenses If You choose to distribute Source Code Form that is
|
Licenses If You choose to distribute Source Code Form that is
|
||||||
Incompatible With Secondary Licenses under the terms of this version of
|
Incompatible With Secondary Licenses under the terms of this version of
|
||||||
the License, the notice described in Exhibit B of this License must be
|
the License, the notice described in Exhibit B of this License must be
|
||||||
attached.
|
attached.
|
||||||
|
|
|
@ -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
|
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
|
package scribble
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/jcelliott/lumber"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"github.com/jcelliott/lumber"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Version is the current version of the project
|
||||||
const Version = "1.0.4"
|
const Version = "1.0.4"
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
||||||
//
|
// Logger is a generic logger interface
|
||||||
Logger interface {
|
Logger interface {
|
||||||
Fatal(string, ...interface{})
|
Fatal(string, ...interface{})
|
||||||
Error(string, ...interface{})
|
Error(string, ...interface{})
|
||||||
|
@ -25,7 +27,7 @@ type (
|
||||||
Trace(string, ...interface{})
|
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
|
// transactions, and provides log output
|
||||||
Driver struct {
|
Driver struct {
|
||||||
mutex sync.Mutex
|
mutex sync.Mutex
|
||||||
|
|
Loading…
Reference in New Issue