update lint and dependency
Some checks failed
Go Action / goaction (push) Failing after 27m2s
Go Action / goaction (pull_request) Failing after 26m32s

This commit is contained in:
andrey
2025-12-23 23:00:51 +03:00
parent 2df0314393
commit 6c843faf4a
15 changed files with 119 additions and 67 deletions

View File

@@ -1,4 +1,5 @@
package json
//nolint:revive
package xml
import (
"encoding/xml"
@@ -13,11 +14,11 @@ var (
)
// Decode from xml.
func Decode(r io.Reader, v interface{}) error {
func Decode(r io.Reader, v any) error {
return xml.NewDecoder(r).Decode(v)
}
// Encode to xml.
func Encode(w io.Writer, v interface{}) error {
func Encode(w io.Writer, v any) error {
return xml.NewEncoder(w).Encode(v)
}