buffer

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

Buffer - the buffer struture

func New

func New() *Buffer

New - creates a new buffer

func (*Buffer) Add

func (b *Buffer) Add(item interface{})

Add - adds a new item

func (*Buffer) GetAll

func (b *Buffer) GetAll() []interface{}

GetAll - return all items

func (*Buffer) GetSize

func (b *Buffer) GetSize() int

GetSize - returns the buffer's size

func (*Buffer) Release

func (b *Buffer) Release()

Release - releases the buffer

Jump to

Keyboard shortcuts

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