lint fixes (#14)

* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-21 14:53:21 +03:00
committed by GitHub
parent 199ff66bd4
commit c4a303190a
42 changed files with 95 additions and 178 deletions

View File

@@ -14,8 +14,7 @@ type serverCodec struct {
c io.Closer
// temporary work space
req serverRequest
resp serverResponse
req serverRequest
}
type serverRequest struct {
@@ -68,8 +67,6 @@ func (c *serverCodec) ReadBody(x interface{}) error {
return json.Unmarshal(*c.req.Params, &params)
}
var null = json.RawMessage([]byte("null"))
func (c *serverCodec) Write(m *codec.Message, x interface{}) error {
var resp serverResponse
resp.ID = m.Id