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

doc: add go playground demo

This commit is contained in:
dudaodong
2023-05-19 11:42:17 +08:00
parent 78aa679670
commit 259dbce85e
13 changed files with 48 additions and 29 deletions

View File

@@ -349,7 +349,7 @@ func CopyProperties[T, U any](dst T, src U) error {
}
// ToInterface converts reflect value to its interface type.
// Play: todo
// Play: https://go.dev/play/p/syqw0-WG7Xd
func ToInterface(v reflect.Value) (value interface{}, ok bool) {
if v.IsValid() && v.CanInterface() {
return v.Interface(), true