You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
327 B
22 lines
327 B
9 years ago
|
// Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
|
||
|
// All rights reserved.
|
||
|
//
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
// +build go1.3
|
||
|
|
||
|
package util
|
||
|
|
||
|
import (
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
type Pool struct {
|
||
|
sync.Pool
|
||
|
}
|
||
|
|
||
|
func NewPool(cap int) *Pool {
|
||
|
return &Pool{}
|
||
|
}
|