csv

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinesToString

func LinesToString(lines []string) string

func TokensToString

func TokensToString(tokens []string) string

Types

type CheckSummary

type CheckSummary struct {
	Checked  string
	Original string
	What     string
	Who      string
	When     string
}

type Line

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

func (*Line) Add

func (line *Line) Add(key, value string)

add, overwriting

func (*Line) AddSafe

func (line *Line) AddSafe(key, value string) error

add, without overwriting

func (*Line) ToString

func (line *Line) ToString() string

type Store

type Store struct {
	Lines          []*Line
	Header         []string
	FixedHeader    []string
	RequiredHeader []string
	HeaderString   string
}

func New

func New() *Store

func (*Store) Add

func (s *Store) Add() *Line

func (*Store) GetHeader

func (s *Store) GetHeader() string

func (*Store) OrderHeader

func (s *Store) OrderHeader()

set up headers (some fixed + naturally ordered)

func (*Store) SetFixedHeader

func (s *Store) SetFixedHeader(fixedHeader []string)

func (*Store) SetRequiredHeader

func (s *Store) SetRequiredHeader(reqdHeader []string)

func (*Store) ToString

func (s *Store) ToString() string

func (*Store) WriteCSV

func (s *Store) WriteCSV(w io.Writer) (int, error)

Jump to

Keyboard shortcuts

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