minor bugfixes and cleanup

This commit is contained in:
ston1th 2018-09-19 00:10:16 +02:00
commit 97d914bce4
26 changed files with 198 additions and 221 deletions

View file

@ -1,8 +1,8 @@
// Copyright (C) 2018 Marius Schellenberger
package store
import (
"github.com/boltdb/bolt"
)
import "github.com/boltdb/bolt"
const defaultBoltBucket = "default"

View file

@ -1,3 +1,5 @@
// Copyright (C) 2018 Marius Schellenberger
package store
import (

View file

@ -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)
}