Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Mar 24, 2019
1 parent 3c09cf4 commit 4bfc659
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"log"
"net/http"

"github.com/EDDYCJY/go-gin-example/pkg/setting"
"github.com/EDDYCJY/go-gin-example/routers"
"github.com/EDDYCJY/go-gin-example/models"
"github.com/EDDYCJY/go-gin-example/pkg/logging"
"github.com/EDDYCJY/go-gin-example/pkg/gredis"
"github.com/EDDYCJY/go-gin-example/pkg/logging"
"github.com/EDDYCJY/go-gin-example/pkg/setting"
"github.com/EDDYCJY/go-gin-example/routers"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion models/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func AddTag(name string, state int, createdBy string) error {
func GetTags(pageNum int, pageSize int, maps interface{}) ([]Tag, error) {
var (
tags []Tag
err error
err error
)

if pageSize > 0 && pageNum > 0 {
Expand Down
6 changes: 3 additions & 3 deletions pkg/app/form.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app

import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/astaxie/beego/validation"
"github.com/gin-gonic/gin"
"net/http"

"github.com/EDDYCJY/go-gin-example/pkg/e"
)
Expand All @@ -25,4 +25,4 @@ func BindAndValid(c *gin.Context, form interface{}) (int, int) {
}

return http.StatusOK, e.SUCCESS
}
}
2 changes: 1 addition & 1 deletion pkg/app/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Response struct {
func (g *Gin) Response(httpCode, errCode int, data interface{}) {
g.C.JSON(httpCode, Response{
Code: httpCode,
Msg: e.GetMsg(errCode),
Msg: e.GetMsg(errCode),
Data: data,
})
return
Expand Down
2 changes: 1 addition & 1 deletion service/article_service/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (a *Article) Edit() error {
"desc": a.Desc,
"content": a.Content,
"cover_image_url": a.CoverImageUrl,
"state": a.State,
"state": a.State,
"modified_by": a.ModifiedBy,
})
}
Expand Down

0 comments on commit 4bfc659

Please sign in to comment.