mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 08:04:04 -08:00
22 lines
327 B
Go
22 lines
327 B
Go
|
// 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{}
|
||
|
}
|