summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Loibl <mail@matthiasloibl.com>2016-11-04 12:57:27 +0100
committerAndrey Nering <andrey.nering@gmail.com>2016-11-04 09:57:27 -0200
commita4fa889ceda9b6718d82b5aca04ed6bbb9883e00 (patch)
treed7c7293bde91164c8a1f0b89ac952a0e422a4c13
parentfc55182a4c7dc884e64db1a3e1ed045ac3f6bf9b (diff)
downloadgitea-a4fa889ceda9b6718d82b5aca04ed6bbb9883e00.tar.gz
gitea-a4fa889ceda9b6718d82b5aca04ed6bbb9883e00.zip
Run goimports on the whole project (#34)
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
-rw-r--r--models/repo_test.go4
-rw-r--r--modules/markdown/markdown_test.go6
-rw-r--r--modules/setting/setting.go2
3 files changed, 6 insertions, 6 deletions
diff --git a/models/repo_test.go b/models/repo_test.go
index 9ab27ba619..954f4db3bf 100644
--- a/models/repo_test.go
+++ b/models/repo_test.go
@@ -1,11 +1,11 @@
package models_test
import (
- . "github.com/go-gitea/gitea/models"
- . "github.com/smartystreets/goconvey/convey"
"testing"
+ . "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/markdown"
+ . "github.com/smartystreets/goconvey/convey"
)
func TestRepo(t *testing.T) {
diff --git a/modules/markdown/markdown_test.go b/modules/markdown/markdown_test.go
index 9de8f11dc4..0246e2a7ec 100644
--- a/modules/markdown/markdown_test.go
+++ b/modules/markdown/markdown_test.go
@@ -1,13 +1,13 @@
package markdown_test
import (
- . "github.com/go-gitea/gitea/modules/markdown"
- . "github.com/smartystreets/goconvey/convey"
+ "bytes"
"testing"
- "bytes"
+ . "github.com/go-gitea/gitea/modules/markdown"
"github.com/go-gitea/gitea/modules/setting"
"github.com/russross/blackfriday"
+ . "github.com/smartystreets/goconvey/convey"
)
func TestMarkdown(t *testing.T) {
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 102d758dd6..c2e4f43a12 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -22,8 +22,8 @@ import (
_ "github.com/go-macaron/cache/redis"
"github.com/go-macaron/session"
_ "github.com/go-macaron/session/redis"
- "strk.kbt.io/projects/go/libravatar"
"gopkg.in/ini.v1"
+ "strk.kbt.io/projects/go/libravatar"
"github.com/go-gitea/gitea/modules/bindata"
"github.com/go-gitea/gitea/modules/log"