Skip to content

Commit

Permalink
binding: remove version
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Nov 13, 2019
1 parent 2d0f5e3 commit 1827cc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ func Test_Bind(t *testing.T) {
})
})
}

func Test_Version(t *testing.T) {
Convey("Get package version", t, func() {
So(Version(), ShouldEqual, _VERSION)
})
}
6 changes: 0 additions & 6 deletions binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ import (
"gopkg.in/macaron.v1"
)

const _VERSION = "0.6.1"

func Version() string {
return _VERSION
}

func bind(ctx *macaron.Context, obj interface{}, ifacePtr ...interface{}) {
contentType := ctx.Req.Header.Get("Content-Type")
if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" || ctx.Req.Method == "PATCH" {
Expand Down

0 comments on commit 1827cc1

Please sign in to comment.