Documentation ¶
Index ¶
- func Bean2Map(structVal any, forceConvFields ...string) map[string]any
- func Bean2Map4CustomStrategy(structVal any, convertName func(fileName string) string, ...) map[string]any
- func Bean2MapHump(structVal any, forceConvFields ...string) map[string]any
- func Bean2MapSnake(structVal any, forceConvFields ...string) map[string]any
- func BeanFieldsForeach(structVal any, consumer func(fieldName string, rvField reflect.Value))
- func CopyProperties(source any, target any, ignores ...string)
- func CopyPropertiesByJson(source any, target any)
- func CopyStruct[Struct any](source any) *Struct
- func GetAllFieldNames4CustomStrategy(structVal any, convertName func(fileName string) string, ...) []string
- func GetFieldNames4IncludeTypeAndCustomStrategy(structVal any, includeType includeType, ...) []string
- func GetNotZeroFieldNames4CustomStrategy(structVal any, convertName func(fileName string) string, ...) []string
- func GetZeroFieldNames(structVal any, ignores ...string) []string
- func GetZeroFieldNames4CustomStrategy(structVal any, convertName func(fileName string) string, ...) []string
- func GetZeroFieldNamesHump(structVal any, ignores ...string) []string
- func GetZeroFieldNamesSnake(structVal any, ignores ...string) []string
- func IsNil(a any) bool
- func Map2Bean[T comparable](mapVal map[string]any) *T
- func NotExistTag(rtStruct reflect.Type, tag string) bool
- func ToJson(obj any) string
- func ToJson2(obj any, omitempty bool) string
- func ToJson3(obj any) string
- func ToObj(jsonStr string, obj any)
- func ToObj4Bytes(bytes []byte, obj any)
- func ToStruct[T comparable](jsonStr string) *T
- func ToStruct4Bytes[T comparable](bytes []byte) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bean2Map4CustomStrategy ¶
func BeanFieldsForeach ¶
func CopyProperties ¶
func CopyPropertiesByJson ¶
func CopyStruct ¶
func GetZeroFieldNames ¶
func GetZeroFieldNamesHump ¶
func GetZeroFieldNamesSnake ¶
func Map2Bean ¶
func Map2Bean[T comparable](mapVal map[string]any) *T
func ToObj4Bytes ¶
func ToStruct ¶
func ToStruct[T comparable](jsonStr string) *T
func ToStruct4Bytes ¶
func ToStruct4Bytes[T comparable](bytes []byte) *T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.