| commit | bdfde857a802e443a2cab1717744dee8e56cbe76 | [log] [tgz] |
|---|---|---|
| author | Yuxuan 'fishy' Wang <yuxuan.wang@reddit.com> | Mon Aug 08 22:12:40 2022 -0700 |
| committer | Yuxuan 'fishy' Wang <fishywang@gmail.com> | Tue Aug 09 17:41:45 2022 -0700 |
| tree | 71f2686e775c35667f3fdae4eb83b814ecb77ed1 | |
| parent | 7ae180bb1eaea8bdfd6d5714aa90b8445165ff1c [diff] |
Add a generic sync.Pool wrapper to go library
Since we dropped support of Go 1.18-, use generic to avoid dealing with
type assertions with interface{}/any.
While I'm here, also remove the usages of ioutil, as that's officially
marked as deprecated in Go 1.19.
Client: go