Documentation ¶
Overview ¶
The csv package contains a codec for talking CSV (comma separated values).
Index ¶
- type CsvCodec
- func (c *CsvCodec) CanMarshalWithCallback() bool
- func (c *CsvCodec) ContentType() string
- func (c *CsvCodec) ContentTypeSupported(contentType string) bool
- func (c *CsvCodec) FileExtension() string
- func (c *CsvCodec) Marshal(object interface{}, options map[string]interface{}) ([]byte, error)
- func (c *CsvCodec) Unmarshal(data []byte, obj interface{}) error
- type InvalidUnmarshalError
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 ¶
CanMarshalWithCallback returns whether this codec is capable of marshalling a response containing a callback.
func (*CsvCodec) ContentType ¶
ContentType returns the content type for this codec.
func (*CsvCodec) ContentTypeSupported ¶
func (*CsvCodec) FileExtension ¶
FileExtension returns the file extension for this codec.
type InvalidUnmarshalError ¶
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
Click to show internal directories.
Click to hide internal directories.