go 泛型的使用
泛型参考文章:https://blog.csdn.net/qq_4206...(https://link.segmentfault.com/?encxX4lq%2BMcCmnh1cL8SgmfvQ%3D%3D.%2BNnNOxWciBPmVztH35YcUZrXsZEypnM3YKLFFfA
泛型参考文章:https://blog.csdn.net/qq_4206...(https://link.segmentfault.com/?encxX4lq%2BMcCmnh1cL8SgmfvQ%3D%3D.%2BNnNOxWciBPmVztH35YcUZrXsZEypnM3YKLFFfA
这是优化前的代码,可以看到ServiceRequest.Retrieve在foreach循环里被调用。!(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/4ad609f4d9427c6f708468383095189a.pn