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,13 @@
package operation
import (
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"
"strconv"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
)
type AssignResult struct {

View File

@@ -1,7 +1,5 @@
package operation
import ()
type JoinResult struct {
VolumeSizeLimit uint64 `json:"VolumeSizeLimit,omitempty"`
Error string `json:"error,omitempty"`

View File

@@ -1,12 +1,13 @@
package operation
import (
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"
"strings"
"sync"
"github.com/chrislusf/weed-fs/go/util"
)
type DeleteResult struct {

View File

@@ -1,9 +1,10 @@
package operation
import (
"encoding/json"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
)
type ClusterStatusResult struct {

View File

@@ -1,7 +1,6 @@
package operation
import (
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
_ "fmt"
@@ -9,6 +8,8 @@ import (
"net/url"
"strings"
"time"
"github.com/chrislusf/weed-fs/go/util"
)
type Location struct {

View File

@@ -2,13 +2,14 @@ package operation
import (
"bytes"
"github.com/chrislusf/weed-fs/go/glog"
"io"
"mime"
"os"
"path"
"strconv"
"strings"
"github.com/chrislusf/weed-fs/go/glog"
)
type FilePart struct {

View File

@@ -1,10 +1,11 @@
package operation
import (
proto "code.google.com/p/goprotobuf/proto"
"encoding/json"
"log"
"testing"
proto "code.google.com/p/goprotobuf/proto"
)
func TestSerialDeserial(t *testing.T) {

View File

@@ -2,7 +2,6 @@ package operation
import (
"bytes"
"github.com/chrislusf/weed-fs/go/glog"
"encoding/json"
"errors"
"fmt"
@@ -14,6 +13,8 @@ import (
"net/textproto"
"path/filepath"
"strings"
"github.com/chrislusf/weed-fs/go/glog"
)
type UploadResult struct {