升级接口约束
This commit is contained in:
@ -15,6 +15,8 @@ import "io"
|
||||
//
|
||||
// Date : 16:55 2024/10/23
|
||||
type Serializable interface {
|
||||
// Unmarshal 反序列化
|
||||
Unmarshal(byteData []byte, receiver any) error
|
||||
// UnmarshalWithNumber 反序列化,同时解析数字
|
||||
UnmarshalWithNumber(byteData []byte, receiver any) error
|
||||
// UnmarshalWithNumberIgnoreError 反序列化,同时解析数字, 忽略结果的成功与失败
|
||||
|
Reference in New Issue
Block a user