export

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCSV

func ExportCSV(w io.Writer, reminders []*reminder.Reminder) error

ExportCSV writes reminders as CSV to the writer.

func ExportJSON

func ExportJSON(w io.Writer, reminders []*reminder.Reminder) error

ExportJSON writes reminders as JSON to the writer.

func ImportCSV

func ImportCSV(r io.Reader) ([]*reminder.Reminder, error)

ImportCSV reads reminders from a CSV reader.

func ImportJSON

func ImportJSON(r io.Reader) ([]*reminder.Reminder, error)

ImportJSON reads reminders from a JSON reader.

Types

type JSONReminder

type JSONReminder struct {
	ID               string  `json:"id"`
	Name             string  `json:"name"`
	Body             string  `json:"body,omitempty"`
	ListName         string  `json:"list_name"`
	DueDate          *string `json:"due_date,omitempty"`
	RemindMeDate     *string `json:"remind_me_date,omitempty"`
	CompletionDate   *string `json:"completion_date,omitempty"`
	CreationDate     *string `json:"creation_date,omitempty"`
	ModificationDate *string `json:"modification_date,omitempty"`
	Priority         int     `json:"priority"`
	PriorityLabel    string  `json:"priority_label"`
	Flagged          bool    `json:"flagged"`
	Completed        bool    `json:"completed"`
	URL              string  `json:"url,omitempty"`
}

JSONReminder is the JSON-serializable representation of a reminder.

func ToJSON

func ToJSON(r *reminder.Reminder) JSONReminder

ToJSON converts a reminder to its JSON representation.

Jump to

Keyboard shortcuts

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