reader

package
v0.0.0-...-31daf7f Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrUnexpectedError

type ErrUnexpectedError struct {
	ReceivedToken  css.TokenType
	CurrentContext Font
}

func (*ErrUnexpectedError) Error

func (e *ErrUnexpectedError) Error() string

type ErrUnexpectedToken

type ErrUnexpectedToken struct {
	ExpectedToken css.TokenType
	ReceivedToken css.TokenType
}

func (*ErrUnexpectedToken) Error

func (e *ErrUnexpectedToken) Error() string

type Font

type Font interface {
	Property(string) ([]Property, bool)
}

type Property

type Property interface {
	Type() css.TokenType
	Value() []byte
}

type Reader

type Reader interface {
	OnNextFont() <-chan Font
	OnError() <-chan error
	OnDone() <-chan struct{}
}

func NewReader

func NewReader(input io.Reader) Reader

Jump to

Keyboard shortcuts

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