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,12 +7,15 @@ import (
"gitoa.ru/go-4devs/encoding"
)
var _ encoding.Decode = Decode
var _ encoding.Encode = Encode
var (
_ encoding.Decode = Decode
_ encoding.Encode = Encode
)
// Decode from reader to value.
func Decode(r io.Reader, v interface{}) error {
_, err := toml.DecodeReader(r, v)
return err
}