|
|
|
@ -7,14 +7,15 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func DefaultConfig() Config {
|
|
|
|
|
return Config{
|
|
|
|
|
DB: "./sgot.db",
|
|
|
|
|
c := Config{
|
|
|
|
|
RootPath: "./",
|
|
|
|
|
APIkey: "thisIsNotASecretTokenNow",
|
|
|
|
|
Host: "localhost",
|
|
|
|
|
Port: "6889",
|
|
|
|
|
Title: "Sgot",
|
|
|
|
|
RootPath: "./",
|
|
|
|
|
}
|
|
|
|
|
c.DB = c.RootPath + "shrty.go"
|
|
|
|
|
return c
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
|