1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-11 16:58:30 +08:00

config: Broke out config directory into its own const

This commit is contained in:
Matt Bell
2014-09-11 13:05:59 -07:00
parent 677d790fb5
commit 5059654ec4

View File

@ -34,12 +34,13 @@ type Config struct {
Peers []*SavedPeer
}
var DefaultConfigFilePath = "~/.go-ipfs/config"
var DefaultConfigFile = `{
const DefaultPathRoot = "~/.go-ipfs"
const DefaultConfigFilePath = DefaultPathRoot + "/config"
const DefaultConfigFile = `{
"identity": {},
"datastore": {
"type": "leveldb",
"path": "~/.go-ipfs/datastore"
"path": "` + DefaultPathRoot + `/datastore"
}
}
`