Documentation
¶
Overview ¶
Package codec defines the Codec interface and provides factory functions to create different output format encoders such as CSV, JSON, and HTML. A Codec is responsible for writing tabular data to an output stream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
Codec defines the interface for encoding and writing tabular data from a scanner.Rows source to an io.Writer.
func CSV ¶
CSV returns a Codec that writes data in CSV format. Optional configuration can be provided via functional options.
func HTML ¶
HTML returns a Codec that writes data as an HTML table. Optional configuration can be provided via functional options.
Directories
¶
Path | Synopsis |
---|---|
Package csvcodec provides an implementation of the Codec interface for writing data in CSV (Comma-Separated Values) format.
|
Package csvcodec provides an implementation of the Codec interface for writing data in CSV (Comma-Separated Values) format. |
Package htmlcodec provides an HTML implementation of the Codec interface, generating well-formatted HTML tables with optional headers, NULL styling, row preprocessing, and type-specific string conversion.
|
Package htmlcodec provides an HTML implementation of the Codec interface, generating well-formatted HTML tables with optional headers, NULL styling, row preprocessing, and type-specific string conversion. |
Package jsoncodec provides a JSON implementation of the Codec interface, allowing tabular data to be exported in either standard JSON array format or newline-delimited JSON (JSON Lines).
|
Package jsoncodec provides a JSON implementation of the Codec interface, allowing tabular data to be exported in either standard JSON array format or newline-delimited JSON (JSON Lines). |
Package xmlcodec provides an XML implementation of the Codec interface, generating well-formatted XML tables with optional headers, NULL styling, row preprocessing, and type-specific string conversion.
|
Package xmlcodec provides an XML implementation of the Codec interface, generating well-formatted XML tables with optional headers, NULL styling, row preprocessing, and type-specific string conversion. |
Click to show internal directories.
Click to hide internal directories.