csv

package
v0.0.0-...-86643de Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: BSD-2-Clause Imports: 8 Imported by: 1

Documentation

Overview

The csv package contains a codec for talking CSV (comma separated values).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvCodec

type CsvCodec struct{}

CsvCodec converts objects to and from CSV format.

func (*CsvCodec) CanMarshalWithCallback

func (c *CsvCodec) CanMarshalWithCallback() bool

CanMarshalWithCallback returns whether this codec is capable of marshalling a response containing a callback.

func (*CsvCodec) ContentType

func (c *CsvCodec) ContentType() string

ContentType returns the content type for this codec.

func (*CsvCodec) ContentTypeSupported

func (c *CsvCodec) ContentTypeSupported(contentType string) bool

func (*CsvCodec) FileExtension

func (c *CsvCodec) FileExtension() string

FileExtension returns the file extension for this codec.

func (*CsvCodec) Marshal

func (c *CsvCodec) Marshal(object interface{}, options map[string]interface{}) ([]byte, error)

Converts an object to CSV data.

func (*CsvCodec) Unmarshal

func (c *CsvCodec) Unmarshal(data []byte, obj interface{}) error

Unmarshal converts CSV data into an object.

type InvalidUnmarshalError

type InvalidUnmarshalError struct {
	Type reflect.Type
}

An InvalidUnmarshalError describes an invalid argument passed to Unmarshal. (The argument to Unmarshal must be a non-nil pointer.)

func (*InvalidUnmarshalError) Error

func (e *InvalidUnmarshalError) Error() string

Jump to

Keyboard shortcuts

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