升级接口约束
This commit is contained in:
1 parent
0c3d7b7e92
commit
8d68e6106e
7 files changed
+22
-4
No files matched your search
@@ -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 反序列化,同时解析数字, 忽略结果的成功与失败
|
||||
|
||||