@ -7,14 +7,15 @@ import (
)
func DefaultConfig() Config {
return Config{
c := Config{
DB: "./sgot.db",
RootPath: "./",
APIkey: "thisIsNotASecretTokenNow",
Host: "localhost",
Port: "6889",
Title: "Sgot",
}
c.DB = c.RootPath + "shrty.go"
return c
type Config struct {
@ -24,7 +24,7 @@ func TestConfig_ReadConfig(t *testing.T){
"--title=title",
"--apikey=apikey",
"--domain=domain",
"--root=root"
"--root=root",
expected := &Config{