aboutsummaryrefslogtreecommitdiff
path: root/go/util
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-10-26 11:34:55 -0700
committerChris Lu <chris.lu@gmail.com>2014-10-26 11:34:55 -0700
commit179d36ba0e35e4bdad86988a49828836b649e3df (patch)
tree90c15051728350d3470fbaa44f8531532bdcf386 /go/util
parenta5d6e70299559c10126f6ef248f475152303a79a (diff)
downloadseaweedfs-179d36ba0e35e4bdad86988a49828836b649e3df.tar.xz
seaweedfs-179d36ba0e35e4bdad86988a49828836b649e3df.zip
formatting code by: goimports -w=true .
Diffstat (limited to 'go/util')
-rw-r--r--go/util/config.go3
-rw-r--r--go/util/constants.go2
-rw-r--r--go/util/file_util.go3
-rw-r--r--go/util/net_timeout.go3
4 files changed, 6 insertions, 5 deletions
diff --git a/go/util/config.go b/go/util/config.go
index 050fd0e64..4cf1d7c64 100644
--- a/go/util/config.go
+++ b/go/util/config.go
@@ -10,9 +10,10 @@ package util
import (
"bytes"
- "github.com/chrislusf/weed-fs/go/glog"
"encoding/json"
"os"
+
+ "github.com/chrislusf/weed-fs/go/glog"
)
type Config struct {
diff --git a/go/util/constants.go b/go/util/constants.go
index db1ca38e5..c407533a8 100644
--- a/go/util/constants.go
+++ b/go/util/constants.go
@@ -1,7 +1,5 @@
package util
-import ()
-
const (
VERSION = "0.64"
)
diff --git a/go/util/file_util.go b/go/util/file_util.go
index 412d98458..30e24f001 100644
--- a/go/util/file_util.go
+++ b/go/util/file_util.go
@@ -2,9 +2,10 @@ package util
import (
"bufio"
- "github.com/chrislusf/weed-fs/go/glog"
"errors"
"os"
+
+ "github.com/chrislusf/weed-fs/go/glog"
)
func TestFolderWritable(folder string) (err error) {
diff --git a/go/util/net_timeout.go b/go/util/net_timeout.go
index eb80822b5..f274e4802 100644
--- a/go/util/net_timeout.go
+++ b/go/util/net_timeout.go
@@ -1,9 +1,10 @@
package util
import (
- "github.com/chrislusf/weed-fs/go/stats"
"net"
"time"
+
+ "github.com/chrislusf/weed-fs/go/stats"
)
// Listener wraps a net.Listener, and gives a place to store the timeout