Documentation
¶
Overview ¶
Package export serializes a blocks.Document into the output formats gitrakz exposes to callers: raw JSON, CSV, and PDF.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownBlockType = errors.New("unknown block type")
ErrUnknownBlockType is returned when a blocks.Block carries a BlockType this package has no serializer for.
Functions ¶
func ToCSV ¶
ToCSV walks doc and serializes every tabular block (table, list, keyvalue, metric, chart) into a single CSV document. Prose blocks (heading, text, code) carry no tabular data and are skipped. Records vary in width across block types, so a caller reading the result back with encoding/csv must set csv.Reader.FieldsPerRecord = -1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.