minor bugfixes and cleanup
This commit is contained in:
parent
2a203f6f29
commit
97d914bce4
26 changed files with 198 additions and 221 deletions
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2018 Marius Schellenberger
|
||||
|
||||
package store
|
||||
|
||||
import (
|
||||
"github.com/boltdb/bolt"
|
||||
)
|
||||
import "github.com/boltdb/bolt"
|
||||
|
||||
const defaultBoltBucket = "default"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright (C) 2018 Marius Schellenberger
|
||||
|
||||
package store
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -6,21 +6,6 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
//const (
|
||||
// dbFile = "gowiki.db"
|
||||
// defUser = "admin"
|
||||
// defPassword = "gowiki"
|
||||
// userTable = "user"
|
||||
// pageTable = "page"
|
||||
// snippetTable = "snippet"
|
||||
// bcryptCost = 13
|
||||
// indexName = "Index"
|
||||
// welcome = `# Welcome to GoWiki
|
||||
//This is the [Index](/wiki/Index) page.
|
||||
//You can customize it how you like.`
|
||||
// wikiSection = "wiki"
|
||||
//)
|
||||
|
||||
func storeErr(i interface{}) error {
|
||||
return fmt.Errorf("store: %s", i)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue