1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 05:35:58 +08:00
This commit is contained in:
Juan Batiz-Benet
2014-07-05 01:52:05 -07:00
parent d71bf674f7
commit 381bfaa691
3 changed files with 58 additions and 59 deletions

View File

@ -1,9 +1,9 @@
package config
import (
"strings"
"os"
"os/user"
"strings"
)
type Identity struct {
@ -20,7 +20,6 @@ type Config struct {
Datastore Datastore
}
var defaultConfigFilePath = "~/.go-ipfs/config"
var defaultConfigFile = `{
"identity": {},

View File

@ -1,10 +1,10 @@
package config
import (
"encoding/json"
"io/ioutil"
"os"
"path"
"io/ioutil"
"encoding/json"
)
func ReadFile(filename string) ([]byte, error) {