parser

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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