parser

package
v1.10.47 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT, MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVToMap

func CSVToMap(reader io.Reader) []map[string]string

CSVToMap takes a reader and returns an array of dictionaries, using the header row as the keys

Types

type Result

type Result struct {
	Success      bool
	Error        string
	Label        string
	ResponseCode string
	Duration     time.Duration
}

func MapElementToResult

func MapElementToResult(in map[string]string) Result

type Results

type Results struct {
	HasError         bool
	LastErrorMessage string
	Results          []Result
}

func Parse

func Parse(reader io.Reader) (results Results)

Jump to

Keyboard shortcuts

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