diff --git a/server/web/controller.go b/server/web/controller.go index 9720ac4b..08224fc8 100644 --- a/server/web/controller.go +++ b/server/web/controller.go @@ -287,7 +287,6 @@ func (c *Controller) BindXML(obj interface{}) error { return xml.Unmarshal(c.Ctx.Input.RequestBody, obj) } - // Mapping the method to function func (c *Controller) Mapping(method string, fn func()) { c.methodMapping[method] = fn diff --git a/server/web/controller_test.go b/server/web/controller_test.go index 1f82698e..8a52f097 100644 --- a/server/web/controller_test.go +++ b/server/web/controller_test.go @@ -198,7 +198,7 @@ func TestBindJson(t *testing.T) { assert.Equal(t, "FOO", s.Foo) } -func TestBindNoContentType(t *testing.T) { +func TestBindNoContentType(t *testing.T) { var s struct { Foo string `json:"foo"` } @@ -212,7 +212,6 @@ func TestBindNoContentType(t *testing.T) { assert.Equal(t, "FOO", s.Foo) } - func TestBindXML(t *testing.T) { var s struct { @@ -244,4 +243,4 @@ func TestBindYAML(t *testing.T) { err := ctrlr.Bind(&s) require.NoError(t, err) assert.Equal(t, "FOO", s.Foo) -} \ No newline at end of file +}