parser

package
v0.0.0-...-eb184ca Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStepResult

func ParseStepResult(step *config2.Step, body string) (map[string]interface{}, error)

Types

type OutputParser

type OutputParser struct {
	Body string
	// contains filtered or unexported fields
}

func NewOutputParser

func NewOutputParser(body string) *OutputParser

func (*OutputParser) SliceByCss

func (p *OutputParser) SliceByCss(selector string) ([]string, error)

func (*OutputParser) SliceByJson

func (p *OutputParser) SliceByJson(path string) ([]string, error)

func (*OutputParser) ValueByCss

func (p *OutputParser) ValueByCss(selector string) (string, error)

func (*OutputParser) ValueByCssWithRegex

func (p *OutputParser) ValueByCssWithRegex(selector string, regex string) (string, error)

func (*OutputParser) ValueByJson

func (p *OutputParser) ValueByJson(path string) (string, error)

func (*OutputParser) ValueByJsonWithRegex

func (p *OutputParser) ValueByJsonWithRegex(path string, regex string) (string, error)

func (*OutputParser) ValueByRegex

func (p *OutputParser) ValueByRegex(regex string) (string, error)

Jump to

Keyboard shortcuts

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