aboutsummaryrefslogtreecommitdiff
path: root/go/filer
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/filer
parenta5d6e70299559c10126f6ef248f475152303a79a (diff)
downloadseaweedfs-179d36ba0e35e4bdad86988a49828836b649e3df.tar.xz
seaweedfs-179d36ba0e35e4bdad86988a49828836b649e3df.zip
formatting code by: goimports -w=true .
Diffstat (limited to 'go/filer')
-rw-r--r--go/filer/client_operations.go6
-rw-r--r--go/filer/directory.go2
-rw-r--r--go/filer/directory_in_map.go3
-rw-r--r--go/filer/filer.go2
-rw-r--r--go/filer/filer_embedded.go3
-rw-r--r--go/filer/files_in_leveldb.go1
6 files changed, 8 insertions, 9 deletions
diff --git a/go/filer/client_operations.go b/go/filer/client_operations.go
index 0b006289f..b38368735 100644
--- a/go/filer/client_operations.go
+++ b/go/filer/client_operations.go
@@ -1,12 +1,12 @@
package filer
-import ()
-
import (
- "github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"fmt"
+
+ "github.com/chrislusf/weed-fs/go/util"
+
"net/url"
)
diff --git a/go/filer/directory.go b/go/filer/directory.go
index 956a2f504..66d1aeba5 100644
--- a/go/filer/directory.go
+++ b/go/filer/directory.go
@@ -1,7 +1,5 @@
package filer
-import ()
-
type DirectoryId int32
type DirectoryEntry struct {
diff --git a/go/filer/directory_in_map.go b/go/filer/directory_in_map.go
index 1d88a78be..ee601066c 100644
--- a/go/filer/directory_in_map.go
+++ b/go/filer/directory_in_map.go
@@ -2,7 +2,6 @@ package filer
import (
"bufio"
- "github.com/chrislusf/weed-fs/go/util"
"fmt"
"io"
"os"
@@ -10,6 +9,8 @@ import (
"strconv"
"strings"
"sync"
+
+ "github.com/chrislusf/weed-fs/go/util"
)
var writeLock sync.Mutex //serialize changes to dir.log
diff --git a/go/filer/filer.go b/go/filer/filer.go
index de877fc1f..bf4a1cb19 100644
--- a/go/filer/filer.go
+++ b/go/filer/filer.go
@@ -1,7 +1,5 @@
package filer
-import ()
-
type FileId string //file id on weedfs
type FileEntry struct {
diff --git a/go/filer/filer_embedded.go b/go/filer/filer_embedded.go
index 3d3dac941..0b9b4e668 100644
--- a/go/filer/filer_embedded.go
+++ b/go/filer/filer_embedded.go
@@ -1,11 +1,12 @@
package filer
import (
- "github.com/chrislusf/weed-fs/go/operation"
"errors"
"fmt"
"path/filepath"
"strings"
+
+ "github.com/chrislusf/weed-fs/go/operation"
)
type FilerEmbedded struct {
diff --git a/go/filer/files_in_leveldb.go b/go/filer/files_in_leveldb.go
index 41fbc74bd..781bb0e5f 100644
--- a/go/filer/files_in_leveldb.go
+++ b/go/filer/files_in_leveldb.go
@@ -2,6 +2,7 @@ package filer
import (
"bytes"
+
"github.com/chrislusf/weed-fs/go/glog"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util"