print where data is being served from
This commit is contained in:
parent
e9a40cc1bb
commit
d1704af063
5
main.go
5
main.go
@ -7,6 +7,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -133,6 +135,9 @@ func main() {
|
|||||||
reg := flag.Bool("reg", true, "enable user registration")
|
reg := flag.Bool("reg", true, "enable user registration")
|
||||||
listen := flag.String("listen", ":8383", "interface and port to listen on")
|
listen := flag.String("listen", ":8383", "interface and port to listen on")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
log.Printf("Storing data in: %q", path.Join(os.Getenv("PWD"), "db"))
|
||||||
|
|
||||||
d := diskv.New(diskv.Options{
|
d := diskv.New(diskv.Options{
|
||||||
BasePath: "db",
|
BasePath: "db",
|
||||||
Transform: func(s string) []string { return []string{} },
|
Transform: func(s string) []string { return []string{} },
|
||||||
|
Loading…
Reference in New Issue
Block a user