Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidStruct = errors.New("invalid struct specified")
)
Functions ¶
func CopyDefaults ¶ added in v3.1.4
func CopyDefaults(a, b interface{})
CopyDefaults for a from b a and b should be pointers to the same kind of struct
func CopyFrom ¶ added in v3.1.4
func CopyFrom(a, b interface{})
CopyFrom sets the public members of a from b a and b should be pointers to structs a can be a different type from b Only the Fields which have the same name and assignable type on a and b will be set.
func StructFields ¶ added in v3.1.4
func StructFields(src interface{}) ([]reflect.StructField, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.