Add filename to browser title bar

This commit is contained in:
2017-04-04 16:41:15 -05:00
parent e83f065faa
commit 82c105e8c3
2 changed files with 6 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ var databaseFiles []string
var db *bolt.DB
var memBolt *BoltDB
var currentFilename string
func main() {
var err error
@@ -36,6 +38,7 @@ func main() {
databaseFiles := os.Args[1:]
for _, databaseFile := range databaseFiles {
currentFilename = databaseFile
db, err = bolt.Open(databaseFile, 0600, nil)
if err != nil {
fmt.Printf("Error reading file: %q\n", err.Error())