go fmt
This commit is contained in:
Родитель
18e8204d73
Коммит
f2d554b502
|
@ -7,8 +7,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/router/middleware/session"
|
"github.com/go-gitea/lgtm/router/middleware/session"
|
||||||
"github.com/go-gitea/lgtm/store"
|
"github.com/go-gitea/lgtm/store"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetMaintainer gets the MAINTAINER configuration file.
|
// GetMaintainer gets the MAINTAINER configuration file.
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/shared/token"
|
"github.com/go-gitea/lgtm/shared/token"
|
||||||
"github.com/go-gitea/lgtm/store"
|
"github.com/go-gitea/lgtm/store"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetRepos gets the active repository list.
|
// GetRepos gets the active repository list.
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/model"
|
"github.com/go-gitea/lgtm/model"
|
||||||
"github.com/go-gitea/lgtm/router/middleware/session"
|
"github.com/go-gitea/lgtm/router/middleware/session"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetTeams gets the list of user teams.
|
// GetTeams gets the list of user teams.
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
|
|
||||||
cache "github.com/go-gitea/lgtm/cache/mock"
|
cache "github.com/go-gitea/lgtm/cache/mock"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTeams(t *testing.T) {
|
func TestTeams(t *testing.T) {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/go-gitea/lgtm/model"
|
"github.com/go-gitea/lgtm/model"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
2
main.go
2
main.go
|
@ -7,10 +7,10 @@ import (
|
||||||
"github.com/go-gitea/lgtm/router"
|
"github.com/go-gitea/lgtm/router"
|
||||||
"github.com/go-gitea/lgtm/router/middleware"
|
"github.com/go-gitea/lgtm/router/middleware"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/contrib/ginrus"
|
"github.com/gin-gonic/contrib/ginrus"
|
||||||
"github.com/ianschenck/envflag"
|
"github.com/ianschenck/envflag"
|
||||||
_ "github.com/joho/godotenv/autoload"
|
_ "github.com/joho/godotenv/autoload"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/go-gitea/lgtm/model"
|
"github.com/go-gitea/lgtm/model"
|
||||||
"github.com/go-gitea/lgtm/shared/httputil"
|
"github.com/go-gitea/lgtm/shared/httputil"
|
||||||
"github.com/google/go-github/github"
|
"github.com/google/go-github/github"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/cache"
|
"github.com/go-gitea/lgtm/cache"
|
||||||
"github.com/go-gitea/lgtm/router/middleware/session"
|
"github.com/go-gitea/lgtm/router/middleware/session"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RepoAdmin is a middleware to check if the current user is an admin.
|
// RepoAdmin is a middleware to check if the current user is an admin.
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/go-gitea/lgtm/store"
|
"github.com/go-gitea/lgtm/store"
|
||||||
"github.com/go-gitea/lgtm/store/migration"
|
"github.com/go-gitea/lgtm/store/migration"
|
||||||
"github.com/rubenv/sql-migrate"
|
"github.com/rubenv/sql-migrate"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
// Import the MySQL driver
|
// Import the MySQL driver
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/remote"
|
"github.com/go-gitea/lgtm/remote"
|
||||||
"github.com/go-gitea/lgtm/store"
|
"github.com/go-gitea/lgtm/store"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/go-gitea/lgtm/shared/token"
|
"github.com/go-gitea/lgtm/shared/token"
|
||||||
"github.com/go-gitea/lgtm/store"
|
"github.com/go-gitea/lgtm/store"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Login attempts to authorize a user via GitHub oauth2. If the user does not
|
// Login attempts to authorize a user via GitHub oauth2. If the user does not
|
||||||
|
|
Загрузка…
Ссылка в новой задаче