1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 07:02:29 +08:00

doc: add go playground demo

This commit is contained in:
dudaodong
2023-03-01 11:39:27 +08:00
parent 081908bce3
commit 71aa91a58d
6 changed files with 204 additions and 189 deletions

View File

@@ -343,7 +343,7 @@ func DeepClone[T any](src T) T {
}
// CopyProperties copies each field from the source into the destination. It recursively copies struct pointers and interfaces that contain struct pointers.
// Play: todo
// Play: https://go.dev/play/p/FOVY3XJL-6B
func CopyProperties[T, U any](dst T, src U) (err error) {
defer func() {
if e := recover(); e != nil {