我尝试在 Go 中使用泛型,但我不太明白何时使用anyorcomparable作为类型参数。有人可以帮助理解这些吗?
any
comparable
generics go comparable any
any ×1
comparable ×1
generics ×1
go ×1