update lint and dependency (#2)
All checks were successful
Go Action / goaction (push) Successful in 33s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-12-23 23:25:07 +03:00
parent 2df0314393
commit 3bb09b70d7
15 changed files with 119 additions and 67 deletions

View File

@@ -13,12 +13,12 @@ var (
)
// Decode from reader to value.
func Decode(r io.Reader, v interface{}) error {
func Decode(r io.Reader, v any) error {
return yaml.NewDecoder(r).Decode(v)
}
// Encode from value to writer.
func Encode(w io.Writer, v interface{}) error {
func Encode(w io.Writer, v any) error {
enc := yaml.NewEncoder(w)
defer enc.Close()