Commit c8f64d52 by shenyizhong

* gofmt

1 parent 18bd56ba
...@@ -2,8 +2,8 @@ package auth ...@@ -2,8 +2,8 @@ package auth
import ( import (
"fmt" "fmt"
"os"
"log" "log"
"os"
) )
func init() { func init() {
......
package download package download
import ( import (
"os"
"log"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"log"
"minsync/nodetree" "minsync/nodetree"
"os"
) )
func init() { func init() {
......
package encrypt package encrypt
import ( import (
_"fmt" _ "fmt"
"log" "log"
) )
......
...@@ -3,8 +3,8 @@ package httpcli ...@@ -3,8 +3,8 @@ package httpcli
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"net/http"
"log" "log"
"net/http"
) )
func init() { func init() {
......
...@@ -2,7 +2,6 @@ package main ...@@ -2,7 +2,6 @@ package main
import ( import (
"bytes" "bytes"
"os"
"encoding/json" "encoding/json"
_ "fmt" _ "fmt"
_ "io/ioutil" _ "io/ioutil"
...@@ -16,6 +15,7 @@ import ( ...@@ -16,6 +15,7 @@ import (
"minsync/travremot" "minsync/travremot"
_ "minsync/upload" _ "minsync/upload"
_ "net/http" _ "net/http"
"os"
"runtime" "runtime"
) )
......
package nodetree package nodetree
import ( import (
_"fmt" _ "fmt"
"log" "log"
) )
......
package travloc package travloc
import ( import (
_"fmt" _ "fmt"
"strings"
"os"
"io/ioutil" "io/ioutil"
"path"
"log" "log"
"minsync/nodetree" "minsync/nodetree"
"os"
"path"
"strings"
) )
func init() { func init() {
...@@ -84,7 +84,7 @@ func exploreRecursive(node *nodetree.NodeLoc, option *nodetree.OptionLoc) { ...@@ -84,7 +84,7 @@ func exploreRecursive(node *nodetree.NodeLoc, option *nodetree.OptionLoc) {
func IsInSlice(slice []string, s string) bool { func IsInSlice(slice []string, s string) bool {
if len(slice) == 0 { if len(slice) == 0 {
return false; return false
} }
isIn := false isIn := false
......
package travloc package travloc
import ( import (
"fmt"
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt"
"log" "log"
"minsync/nodetree"
"os" "os"
"runtime" "runtime"
"testing" "testing"
"minsync/nodetree"
) )
func TestExplorer(t *testing.T) { func TestExplorer(t *testing.T) {
...@@ -25,7 +25,7 @@ func TestExplorer(t *testing.T) { ...@@ -25,7 +25,7 @@ func TestExplorer(t *testing.T) {
} }
option.SubFlag = true option.SubFlag = true
option.IgnorePath = []string{`.git`,`.svn`} option.IgnorePath = []string{`.git`, `.svn`}
option.IgnoreFile = []string{`.DS_Store`, `.gitignore`} option.IgnoreFile = []string{`.DS_Store`, `.gitignore`}
result, err := Explorer(option) result, err := Explorer(option)
......
package travremot package travremot
import ( import (
"strings"
"log"
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
"net/http" "log"
"minsync/auth" "minsync/auth"
"minsync/nodetree" "minsync/nodetree"
"net/http"
"strings"
) )
func init() { func init() {
...@@ -47,7 +47,7 @@ func exploreRecursive(node *nodetree.NodeRemot, option *nodetree.OptionRemot) { ...@@ -47,7 +47,7 @@ func exploreRecursive(node *nodetree.NodeRemot, option *nodetree.OptionRemot) {
var resp *http.Response var resp *http.Response
resp, err := http.DefaultClient.Do(req) resp, err := http.DefaultClient.Do(req)
if (err != nil) { if err != nil {
log.Println(err) log.Println(err)
} }
......
package upload package upload
import ( import (
_"fmt" _ "fmt"
"log" "log"
"minsync/nodetree" "minsync/nodetree"
) )
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!