(code int)
| 221 | } |
| 222 | |
| 223 | func isValidReceivedCloseCode(code int) bool { |
| 224 | return validReceivedCloseCodes[code] || (code >= 3000 && code <= 4999) |
| 225 | } |
| 226 | |
| 227 | // BufferPool represents a pool of buffers. The *sync.Pool type satisfies this |
| 228 | // interface. The type of the value stored in a pool is not specified. |