helpers

package
v0.0.0-...-ee148e2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChromedpQueryEndpointList

func ChromedpQueryEndpointList(endpointListURL string, waitVisibleElement string) (*goquery.Document, error)

ChromedpQueryEndpointList queries the given endpoint list using chromedp and returns the html document

func FailOnError

func FailOnError(errString string, err error)

FailOnError checks if err is not equal to nil and if it isn't, logs failure and exits the program

func IntArrayContains

func IntArrayContains(l []int, i int) bool

IntArrayContains checks if the integer array contains the provided integer.

func IntArraysEqual

func IntArraysEqual(l1 []int, l2 []int) bool

IntArraysEqual checks if l1 and l2 have the same contents regardless of order.

func QueryAndOpenCSV

func QueryAndOpenCSV(csvURL string, csvFilePath string, header bool) (*csv.Reader, *os.File, error)

func QueryAndReadFile

func QueryAndReadFile(URL string, filePath string) ([]byte, error)

func QueryEndpointList

func QueryEndpointList(endpointListURL string) ([]byte, error)

QueryEndpointList queries the given endpoint list using http client and returns the response body of the GET request

func StringArrayContains

func StringArrayContains(l []string, s string) bool

StringArrayContains checks if the string array contains the provided string.

func StringArraysEqual

func StringArraysEqual(l1 []string, l2 []string) bool

StringArraysEqual checks if l1 and l2 have the same contents regardless of order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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