• Steven Allen's avatar
    make ByteSlicePool a *Pool, not a Pool. · 5ef65a03
    Steven Allen authored
    This way, copying it won't copy the underlying pool.
    
    Also, initialize it immediately instead of in an `init` function to ensure that
    it's fully initialized immediately.
    5ef65a03
pool_test.go 5.13 KB