Documentation ¶ Overview ¶ Package pool provides a trivial integer pool. Index ¶ type Pool func (p *Pool) Get() (uint64, bool) func (p *Pool) Put(v uint64) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pool ¶ type Pool struct { // Start is the starting value (if needed). Start uint64 // Limit is the upper limit. Limit uint64 // contains filtered or unexported fields } Pool is a simple allocator. func (*Pool) Get ¶ func (p *Pool) Get() (uint64, bool) Get gets a value from the pool. func (*Pool) Put ¶ func (p *Pool) Put(v uint64) Put returns a value to the pool. Source Files ¶ View all Source files pool.go Click to show internal directories. Click to hide internal directories.