data

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package data provides functions to read and manipulate CSV files used on the generation of requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

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

Data contains the content of the CSV file

func Read

func Read(fileName string) *Data

Read reads the content of the CSV file

func (*Data) Next

func (d *Data) Next() *Record

Next loops through the records

type Record

type Record map[string]string

Record represents a line on the CSV file

func NewRecord

func NewRecord() Record

NewRecord creates a new record

func (*Record) String

func (r *Record) String() string

Jump to

Keyboard shortcuts

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