some tests and major cleanup
This commit is contained in:
parent
8ef2a2547c
commit
16671b3406
30 changed files with 192057 additions and 202431 deletions
|
|
@ -2,16 +2,12 @@
|
|||
|
||||
package store
|
||||
|
||||
import "fmt"
|
||||
|
||||
func storeErr(i interface{}) error {
|
||||
return fmt.Errorf("store: %s", i)
|
||||
}
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrKeyNotFound = storeErr("key not found")
|
||||
ErrWriterIsNil = storeErr("writer is nil")
|
||||
ErrReaderIsNil = storeErr("reader is nil")
|
||||
ErrKeyNotFound = errors.New("store: key not found")
|
||||
ErrWriterIsNil = errors.New("store: writer is nil")
|
||||
ErrReaderIsNil = errors.New("store: reader is nil")
|
||||
)
|
||||
|
||||
type Store interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue