pass golint

This commit is contained in:
Wenkai Yin 2016-06-06 17:42:16 +08:00
parent 3f6eace9cb
commit e8cad0f9f3

View File

@ -71,8 +71,8 @@ func (b *BaseAPI) Validate(v interface{}) {
}
}
// DecodeJsonReqAndValidate does both decoding and validation
func (b *BaseAPI) DecodeJsonReqAndValidate(v interface{}) {
// DecodeJSONReqAndValidate does both decoding and validation
func (b *BaseAPI) DecodeJSONReqAndValidate(v interface{}) {
b.DecodeJSONReq(v)
b.Validate(v)
}