mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-24 05:59:55 +08:00
gofmt
This commit is contained in:
@ -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": {},
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user