Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2023 Changes in this version + var DefaultCopyOptions = CopyOptions + func Copy(from interface{}, to interface{}) error + func CopyField(from interface{}, to interface{}, name string) error + func CopyWithOptions(from interface{}, to interface{}, options CopyOptions) error + func Fields(obj interface{}) ([]reflect.StructField, error) + func FieldsNames(obj interface{}) ([]string, error) + func GetField(obj interface{}, name string) (interface{}, error) + func GetFieldKind(obj interface{}, name string) (reflect.Kind, error) + func GetFieldTag(obj interface{}, fieldName, tagKey string) (string, error) + func HasField(obj interface{}, name string) (bool, error) + func IsStruct(obj interface{}) bool + func IsZeroValue(i interface{}) bool + func Items(obj interface{}) (map[string]interface{}, error) + func SetField(s interface{}, name string, value interface{}) error + func Tags(obj interface{}, key string) (map[string]string, error) + type CopyOptions struct + CopyZeroValues bool + IgnoreNotFoundFields bool