fmt all go file

This commit is contained in:
lealife committed 2015-11-13 17:58:41 +08:00
1 parent cba69444a8
commit 7809d00787
100 files changed
+3375 -3331

No files matched your search

+5 -5
View File
@@ -1,12 +1,12 @@
package tests
import (
"testing"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
"testing"
// . "github.com/leanote/leanote/app/lea"
"github.com/leanote/leanote/app/service"
// "gopkg.in/mgo.v2"
// "fmt"
// "gopkg.in/mgo.v2"
// "fmt"
)
func init() {
@@ -20,4 +20,4 @@ func TestAuth(t *testing.T) {
if err != nil {
t.Error("Admin User Auth Error")
}
}
}
+7 -7
View File
@@ -1,14 +1,14 @@
package tests
import (
"testing"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
// "github.com/leanote/leanote/app/service"
// "gopkg.in/mgo.v2"
// "fmt"
"testing"
// . "github.com/leanote/leanote/app/lea"
// "github.com/leanote/leanote/app/service"
// "gopkg.in/mgo.v2"
// "fmt"
)
func TestDBConnect(t *testing.T) {
db.Init("mongodb://localhost:27017/leanote", "leanote")
}
db.Init("mongodb://localhost:27017/leanote", "leanote")
}
+2 -1
View File
@@ -1,3 +1,4 @@
package tests
func a() {
}
}