stream_transform

package
v0.1.2-alpha29 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectReader

type ObjectReader interface {
	Read() (interface{}, error)
}

func NewJSONReader

func NewJSONReader(inStream io.Reader) ObjectReader

func NewTextReader

func NewTextReader(inStream io.Reader) ObjectReader

type RegexpShorthand

type RegexpShorthand interface {
	GetFirstMatch(string, string) (string, error)
	GetAllMatches(string, string) ([]string, error)
}

func NewRegexpShorthand

func NewRegexpShorthand() RegexpShorthand

type StreamTransformer

type StreamTransformer interface {
	Transform() error
}

func NewTemplateStreamTransformer

func NewTemplateStreamTransformer(
	tplStr string,
	inStream ObjectReader,
	outStream io.Writer,
) (StreamTransformer, error)

type XMLShorthand

type XMLShorthand interface {
	GetFirstFull(io.Reader, string) (string, error)
	GetAllFull(io.Reader, string) ([]string, error)
	GetFirstInner(io.Reader, string) (string, error)
	GetAllInner(io.Reader, string) ([]string, error)
}

func NewXMLShorthand

func NewXMLShorthand() XMLShorthand

type XMLStringShorthand

type XMLStringShorthand interface {
	GetFirstFull(string, string) (string, error)
	GetAllFull(string, string) ([]string, error)
	GetFirstInner(string, string) (string, error)
	GetAllInner(string, string) ([]string, error)
}

func NewXMLStringShorthand

func NewXMLStringShorthand() XMLStringShorthand

Jump to

Keyboard shortcuts

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