update lint and dependency (#2)
All checks were successful
Go Action / goaction (push) Successful in 33s
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:
@@ -1,7 +1,7 @@
|
||||
package encoding
|
||||
|
||||
// Unmarshal bytes to inteface.
|
||||
type Unmarshal func(data []byte, v interface{}) error
|
||||
type Unmarshal func(data []byte, v any) error
|
||||
|
||||
// Marshal interface to bytes.
|
||||
type Marshal func(v interface{}) ([]byte, error)
|
||||
type Marshal func(v any) ([]byte, error)
|
||||
|
||||
Reference in New Issue
Block a user