csvformat

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMoviesFromText

func AddMoviesFromText() error

func WriteCSVBuffer

func WriteCSVBuffer() (*bytes.Buffer, error)

func WriteCSVOutput

func WriteCSVOutput() error

Types

type Book

type Book struct {
	Author string
	Title  string
}

type Books

type Books []Book

func (*Books) ToCSV

func (books *Books) ToCSV(w io.Writer) error

type Movie

type Movie struct {
	Title    string
	Director string
	Year     int
}

func ReadCSV

func ReadCSV(b io.Reader) ([]Movie, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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