csv

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package csv contains implementation of format interfaces for CSV document type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader offers support for CSV format.

func (*Reader) Initialize

func (c *Reader) Initialize(file *os.File) error

Initialize initializes the reader with a new csv.Reader

func (*Reader) ReadHeader

func (c *Reader) ReadHeader() ([]string, error)

ReadHeader reads the header of the file

func (*Reader) ReadRow

func (c *Reader) ReadRow(headers []string) (map[string]string, error)

ReadRow reads a single CSV row and returns the data as a map of key/value pairs where key is column name and value is row value.

Jump to

Keyboard shortcuts

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