abstract

package
v0.0.0-...-de2e491 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package abstract ...

Description : abstract ...

Author : go_developer@163.com<白茶清欢>

Date : 2024-10-23 16:54

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializable

type Serializable interface {
	// UnmarshalWithNumber 反序列化,同时解析数字
	UnmarshalWithNumber(byteData []byte, receiver any) error
	// UnmarshalWithNumberIgnoreError 反序列化,同时解析数字, 忽略结果的成功与失败
	UnmarshalWithNumberIgnoreError(byteData []byte, receiver any)
	// UnmarshalWithNumberForIOReader 从文件流读取数据并反序列化
	UnmarshalWithNumberForIOReader(ioReader io.ReadCloser, receiver any) error
	// UnmarshalWithNumberForIOReaderIgnoreError 从文件流读取数据并反序列化, 忽略异常
	UnmarshalWithNumberForIOReaderIgnoreError(ioReader io.ReadCloser, receiver any)
	// UnmarshalWithNumberForString 序列化字符串反解析为结构体
	UnmarshalWithNumberForString(input string, receiver any) error
	// UnmarshalWithNumberForStringIgnoreError 序列化字符串反解析为结构体,并忽略异常
	UnmarshalWithNumberForStringIgnoreError(input string, receiver any)
	// MarshalForByte 序列化为字节数组
	MarshalForByte(input any) ([]byte, error)
	MarshalForByteIgnoreError(input any) []byte
	// MarshalForString 序列化为字符串
	MarshalForString(input any) (string, error)
	MarshalForStringIgnoreError(input any) string
}

Serializable 序列化的接口约束

Author : go_developer@163.com<白茶清欢>

Date : 16:55 2024/10/23

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL