Chakib Ben Ziane
03d30e6704
- inspired from golang database package and caddyserver modules - Migrating from class style to interfaces - FIX: browser provisioning is broken, config is not ready when the browser module is registered.
16 lines
225 B
Go
16 lines
225 B
Go
package database
|
|
|
|
import (
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetDefaultDBPath() string {
|
|
return DefaultDBPath
|
|
}
|
|
|
|
func GetDBFullPath() string {
|
|
dbdir := GetDefaultDBPath()
|
|
dbpath := filepath.Join(dbdir, DBFileName)
|
|
return dbpath
|
|
}
|