@cryptotaxi247 / kubo / commits / 5059654ec

config: Broke out config directory into its own const

Matt Bell committed Sep 11, 2014 at 13:05 UTC 5059654ec4465977590f9c8310bf96187e5dfdf8
1 file changed +4 -3
config/config.go
+4 -3
@@ -34,12 +34,13 @@ type Config struct {
34 Peers []*SavedPeer
35 }
36
37 -var DefaultConfigFilePath = "~/.go-ipfs/config"
38 -var DefaultConfigFile = `{
37 +const DefaultPathRoot = "~/.go-ipfs"
38 +const DefaultConfigFilePath = DefaultPathRoot + "/config"
39 +const DefaultConfigFile = `{
40 "identity": {},
41 "datastore": {
42 "type": "leveldb",
42 - "path": "~/.go-ipfs/datastore"
43 + "path": "` + DefaultPathRoot + `/datastore"
44 }
45 }
46 `