buffer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 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
}

func New

func New(length int) *Buffer

func (*Buffer) Add

func (b *Buffer) Add(str string)

func (*Buffer) Empty

func (b *Buffer) Empty() bool

func (*Buffer) Full

func (b *Buffer) Full() bool

func (*Buffer) Get

func (b *Buffer) Get(index int) string

func (*Buffer) Join

func (b *Buffer) Join(sep string, limit int) string

func (*Buffer) Pop

func (b *Buffer) Pop(num int)

func (*Buffer) Shift

func (b *Buffer) Shift(num int)

func (*Buffer) Size

func (b *Buffer) Size() int

Jump to

Keyboard shortcuts

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