package
0.5.0
Repository: https://github.com/gogogofast/gofast.git
Documentation: pkg.go.dev

# Functions

Clone 直接克隆对象 Clone creates a direct clone of the provided object.
Compare 比较两个结构体的字段 Compare compares two structs field by field.
Convert 转换对象类型 Convert converts an object of one type to another.
DeepClone 执行深度复制 DeepClone performs a deep copy of the provided object.
DeepCompare 执行深度比较 DeepCompare performs a deep comparison of two objects.
Deserialize 将 JSON 数据转换为对象 Deserialize converts JSON data to an object.
FilterFields 过滤结构体的字段 FilterFields filters the fields of a struct based on a given condition function.
FromMap 从映射中填充结构体 FromMap populates a struct from a map.
GetField 获取结构体字段的值 GetField retrieves the value of a field from a struct.
GetFieldNames 获取结构体字段名称 GetFieldNames retrieves the field names of a struct.
IsEqual 检查两个对象是否相等 IsEqual checks if two objects are equal.
IsNil 检查对象是否为 nil IsNil checks if an interface is nil.
Merge 合并两个映射 Merge merges two maps of string keys and interface values.
MergeAndOverride 合并两个映射,后者覆盖前者 MergeAndOverride merges two maps, with the second map overriding the first in case of key conflicts.
Serialize 将对象转换为 JSON Serialize converts an object to JSON.
SetField 设置结构体字段的值 SetField sets the value of a field in a struct.
SetFields 设置结构体多个字段的值 SetFields sets the values of multiple fields in a struct.
ToMap 将结构体转换为映射 ToMap converts a struct to a map.
TypeOf 返回对象的类型 TypeOf returns the type of an object.
Validate 验证对象是否实现了 BaseObject 接口 Validate checks if the object satisfies the BaseObject interface.

# Interfaces

BaseObject 定义基础对象接口 BaseObject defines a base object interface.