formatting code by: goimports -w=true .

This commit is contained in:
Chris Lu
2014-10-26 11:34:55 -07:00
parent a5d6e70299
commit 179d36ba0e
84 changed files with 205 additions and 170 deletions

View File

@@ -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"
)

View File

@@ -1,7 +1,5 @@
package filer
import ()
type DirectoryId int32
type DirectoryEntry struct {

View File

@@ -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

View File

@@ -1,7 +1,5 @@
package filer
import ()
type FileId string //file id on weedfs
type FileEntry struct {

View File

@@ -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 {

View File

@@ -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"