1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-24 05:59:55 +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 package config
import ( import (
"strings"
"os" "os"
"os/user" "os/user"
"strings"
) )
type Identity struct { type Identity struct {
@ -20,7 +20,6 @@ type Config struct {
Datastore Datastore Datastore Datastore
} }
var defaultConfigFilePath = "~/.go-ipfs/config" var defaultConfigFilePath = "~/.go-ipfs/config"
var defaultConfigFile = `{ var defaultConfigFile = `{
"identity": {}, "identity": {},

View File

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