codec

package
v0.0.0-...-623b93e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalCSV

func MarshalCSV(tasks []core.Task) ([]byte, error)

MarshalCSV encodes tasks into CSV format.

func MarshalJSON

func MarshalJSON(tasks []core.Task) ([]byte, error)

func MarshalMarkdown

func MarshalMarkdown(tasks []core.Task) []byte

func MarshalText

func MarshalText(tasks []core.Task) []byte

MarshalText encodes tasks into a simple plain text format.

func UnmarshalCSV

func UnmarshalCSV(b []byte) ([]core.Task, error)

UnmarshalCSV decodes tasks from CSV format.

func UnmarshalJSON

func UnmarshalJSON(b []byte) ([]core.Task, error)

func UnmarshalMarkdown

func UnmarshalMarkdown(b []byte) ([]core.Task, error)

func UnmarshalText

func UnmarshalText(b []byte) ([]core.Task, error)

UnmarshalText decodes tasks from a simple plain text format.

Types

type JSONExport

type JSONExport struct {
	ExportedAt time.Time   `json:"exported_at"`
	Tasks      []core.Task `json:"tasks"`
}

Jump to

Keyboard shortcuts

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