Documentation ¶ Index ¶ type Allocator func New(start, size int) Allocator 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) // AllocateInt allocates an int AllocateInt() int // ReleaseInt releases an item of type integer. ReleaseInt(item int) } Allocator is an allocator interface func New ¶ func New(start, size int) Allocator New provides a new allocator Source Files ¶ View all Source files allocator.go interfaces.go Click to show internal directories. Click to hide internal directories.