Commit c8f64d52 by shenyizhong

* gofmt

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