calendar

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package calendar adds an event with the system's own screen, so people see it and choose the calendar before it's saved.

nimbus native plugin add calendar

calendar.Add(ctx, calendar.Event{Title: "Table for two", Start: at, End: at.Add(time.Hour)})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, e Event) (bool, error)

Add opens the screen and returns when it closes. It's true if they saved it on iOS. Android can't tell, so there it's always true. Android's calendar doesn't say, so there it's true once the screen closes.

Types

type Event

type Event struct {
	Title    string    // its name
	Location string    // where; optional
	Notes    string    // more detail; optional
	Start    time.Time // when it starts
	End      time.Time // the Start plus an hour when zero
}

Event is something in a calendar.

Jump to

Keyboard shortcuts

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