# gostructcopy **Repository Path**: rocket049/gostructcopy ## Basic Information - **Project Name**: gostructcopy - **Description**: copy the exported value of a struct to a likely struct , with reflect. - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-11 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gostructcopy func: ``` //CopyToStruct copy the exported value of a struct to a likely struct , with reflect.利用 reflect 技术把结构体的可 export 值复制到 dst 中 func StructCopy(src, dst interface{}) error ``` copy the exported value of a struct to a likely struct , with reflect. dst must be pointer to s likely struct. 利用 reflect 技术把结构体的可 export 值复制到 dst 中,dst 必须是相似结构体的指针。