stream_transform

package
v0.1.5-beta02 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GolangTemplateXMLV1         = "golang_template_mxj_v0.1.0"
	GolangTemplateJSONV1        = "golang_template_json_v0.1.0"
	GolangTemplateTextV1        = "golang_template_text_v0.1.0"
	GolangTemplateUnspecifiedV1 = "golang_template_v0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectReader

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

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
	GetOutStream() io.Reader
}

type StreamTransformerFactory

type StreamTransformerFactory interface {
	IsTransformable() bool
	GetTransformer(input string) (StreamTransformer, error)
}

func NewStreamTransformerFactory

func NewStreamTransformerFactory(tplType string, tplStr string) StreamTransformerFactory

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