Consider Keys and Values methods that return iterators, like maps.Keys and maps.Values. 改造点之二:现有的 Pool 类型将被一个需要类型参数的新泛型类型取代。 同时新版 Pool 将不再暴露公开的 New 字段,改为通过 NewPool 函数创建实例。该函数接受一个生成新值的函数参数,用于替代 ...