parser

package
v0.0.0-...-16240d6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonParser

func NewJsonParser(refExt RefExtractorInterface) *jsonParser

func NewXmlParser

func NewXmlParser(refExt RefExtractorInterface) *xmlParser

Types

type Parser

type Parser interface {
	Parse(in io.Reader) ([]string, error)
}

type RefExtractor

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

func NewRefExtractor

func NewRefExtractor(opts ...RefExtractorOption) (*RefExtractor, error)

func (*RefExtractor) Extract

func (refExt *RefExtractor) Extract(s string) string

TODO serialized multivalue attributes

type RefExtractorInterface

type RefExtractorInterface interface {
	Extract(s string) string
}

type RefExtractorOption

type RefExtractorOption func(extractor *RefExtractor) error

func WithSuffix

func WithSuffix(s string) RefExtractorOption

Jump to

Keyboard shortcuts

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