update lint
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
andrey1s
2021-04-26 16:21:12 +03:00
parent de08933817
commit 329927f976
10 changed files with 40 additions and 12 deletions

View File

@@ -7,8 +7,10 @@ import (
"gitoa.ru/go-4devs/encoding"
)
var _ encoding.Decode = Decode
var _ encoding.Encode = Encode
var (
_ encoding.Decode = Decode
_ encoding.Encode = Encode
)
func Decode(r io.Reader, v interface{}) error {
return gob.NewDecoder(r).Decode(v)

View File

@@ -7,8 +7,10 @@ import (
"gitoa.ru/go-4devs/encoding"
)
var _ encoding.Unmarshal = Unmarshal
var _ encoding.Marshal = Marshal
var (
_ encoding.Unmarshal = Unmarshal
_ encoding.Marshal = Marshal
)
// Unmarshal by gob decoder.
func Unmarshal(data []byte, v interface{}) error {