Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy(src interface{}, dest interface{}) error
Copy copies the value of fields from src to similar fields of dest
func CopySlice ¶
func CopySlice(src interface{}, dest interface{}) error
CopySlice copies the field values of every struct in src to a corresponding struct in dest with matching id, field name and type.
func MakeSliceOf ¶
func MakeSliceOf(of interface{}, size int) []interface{}
MakeSliceOf creates a slice of values. It returns a slice of interfaces of length `size“ with the same underlying type as the value `of“
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.