Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportJSON ¶
ExportJSON writes reminders as JSON to the writer.
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.
Click to show internal directories.
Click to hide internal directories.