codebuffer

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeBuffer

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

func New

func New(r io.Reader, startTokens, endTokens []rune) *CodeBuffer

func (*CodeBuffer) Iterator

func (c *CodeBuffer) Iterator() (Iterator, error)

type InReadingState

type InReadingState struct{}

func (InReadingState) Error

func (InReadingState) Error() string

type Iterator

type Iterator interface {
	Next() bool
	Value() *Part
	Error() error
}

type Part

type Part struct {
	Type    PartType
	Content []byte
}

type PartType

type PartType uint8
const (
	TextPartType PartType = iota
	CodePartType
)

Jump to

Keyboard shortcuts

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