Documentation ¶
Overview ¶
The csv package contains an encoder that allows many different kinds of data input to be encoded into a csv form.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
And Encoder writes tablular data to the output stream
func (*Encoder) Encode ¶
Encode creates the csv encoding of the input
With structs, the following struct tags are supported using the `render` key:
- omitempty : ignores the column, if the value is the zero value
- noprefix : prevents prefixing columns for nested structs with their field name
Fields with the tag `-` are not rendered e.g. `render:"-"`.
Click to show internal directories.
Click to hide internal directories.