allocator

package
v8.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator interface {

	// Allocate allocates a string
	Allocate() string

	// Release releases a string
	Release(item string)
}

Allocator is an allocator interface

func New

func New(start, size int) Allocator

New provides a new allocator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL