Go 泛型编程: interface 不再是那个 interface

鸟窝 at 
自 Go 1.18 支持泛型后, Go interface 的意义已经彻彻底底的改变了,除了先前代表的方法集的意义外,还被用作泛型的类型约束(type constraint)的功能, interface 已经不再是以前那个单纯的少年了。在 Go 1.17.x 以及以前的版本中,interface 是这样定义的:An interface type specifies a method set called its interface. A variable of interface type can store a value of any type with a method set that……