moving to errors
This commit is contained in:
parent
a2cb04fd09
commit
20f6e45150
@ -1,11 +1,9 @@
|
|||||||
package lite
|
package lite
|
||||||
|
|
||||||
import (
|
import "errors"
|
||||||
"fmt"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrBadFilename error = fmt.Errorf("database filename cannot be empty")
|
ErrBadFilename error = errors.New("database filename cannot be empty")
|
||||||
)
|
)
|
||||||
|
|
||||||
type Option func(d *database) error
|
type Option func(d *database) error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user