converter

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDocsToMarkdown

func ConvertDocsToMarkdown(doc *docs.Document) string

ConvertDocsToMarkdown converts a Google Docs document to Markdown text.

func ConvertDocsToPlainText

func ConvertDocsToPlainText(doc *docs.Document) string

ConvertDocsToPlainText converts a Google Docs document to plain text (no Markdown markers).

func FormatValuesAsCSV added in v0.2.20

func FormatValuesAsCSV(values [][]interface{}) string

FormatValuesAsCSV converts a 2D array of cell values to CSV format. Rows are padded to the maximum column count to produce a rectangular CSV. Fields containing commas, double quotes, or newlines are escaped using encoding/csv's default rules. Nil cells are output as empty strings.

func FormatValuesAsJSON added in v0.2.20

func FormatValuesAsJSON(values [][]interface{}) (string, error)

FormatValuesAsJSON converts a 2D array to a JSON array of objects. The first row is used as headers (keys), remaining rows become objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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