We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ff301 commit a03ab5fCopy full SHA for a03ab5f
store/file.go
@@ -14,13 +14,15 @@ import (
14
)
15
16
var (
17
+ HomeDir, _ = os.UserHomeDir()
18
+
19
// DefaultDatabase is the namespace that the bbolt store
20
// will use if no namespace is provided.
21
DefaultDatabase = "micro"
22
// DefaultTable when none is specified.
23
DefaultTable = "micro"
24
// DefaultDir is the default directory for bbolt files.
- DefaultDir = filepath.Join(".", "micro", "store")
25
+ DefaultDir = filepath.Join(HomeDir, "micro", "store")
26
27
// bucket used for data storage.
28
dataBucket = "data"
0 commit comments