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

update go playground demo

This commit is contained in:
dudaodong
2023-02-16 14:10:24 +08:00
parent 8bf0786abe
commit ca9ecb9c8a
4 changed files with 29 additions and 11 deletions

View File

@@ -327,7 +327,7 @@ func DecodeByte(data []byte, target any) error {
// DeepClone creates a deep copy of passed item.
// can't clone unexported field of struct
// Play: todo
// Play: https://go.dev/play/p/j4DP5dquxnk
func DeepClone[T any](src T) T {
c := cloner{
ptrs: map[reflect.Type]map[uintptr]reflect.Value{},