blocks

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package block provides an ordered sequence of buffers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.18.0

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

Manager holds a "block" node from a double linked list of them.

func New

func New() *Manager

New creates the first block of the sequence.

func (*Manager) Collect added in v0.18.0

func (b *Manager) Collect() []*bytes.Buffer

Collect returns an ordered sequence of block

func (*Manager) Data added in v0.18.0

func (b *Manager) Data() *bytes.Buffer

Data returns current buffer

func (*Manager) Insert added in v0.18.0

func (b *Manager) Insert() *Manager

Insert creates and inserts a new block and moves the manager to it. Returns itself.

func (*Manager) Prev added in v0.18.0

func (b *Manager) Prev() *Manager

Prev returns a manager pointing to a previous block.

Jump to

Keyboard shortcuts

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