extraction

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(source interface{}, ce types.EnvCaptureConf) (val interface{}, err error)

func ExtractFromHtml added in v1.0.6

func ExtractFromHtml(source interface{}, xPath string) (interface{}, error)

func ExtractFromJson added in v0.14.0

func ExtractFromJson(source interface{}, jsonPath string) (interface{}, error)

func ExtractFromXml added in v0.14.0

func ExtractFromXml(source interface{}, xPath string) (interface{}, error)

func ExtractWithRegex added in v0.14.0

func ExtractWithRegex(source interface{}, regexConf types.RegexCaptureConf) (val interface{}, err error)

Types

type ExtractionError

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

func (ExtractionError) Error

func (sc ExtractionError) Error() string

func (ExtractionError) Unwrap

func (sc ExtractionError) Unwrap() error

Jump to

Keyboard shortcuts

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