Feature/generic type (#19)

Supports generics and any
This commit is contained in:
jeffery
2023-04-07 19:21:05 +08:00
committed by GitHub
parent ce429aed1f
commit 9a8c60b30a
51 changed files with 348 additions and 1127 deletions

View File

@@ -6,7 +6,7 @@ import (
"strconv"
)
func toString(i interface{}) string {
func toString(i any) string {
if i == nil {
return ""
}
@@ -137,7 +137,7 @@ func toString(i interface{}) string {
}
}
func toStringReflect(i interface{}) string {
func toStringReflect(i any) string {
if i == nil {
return ""
}