reminder

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package reminder provides error constructors for session reminder operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDRequired

func IDRequired() error

IDRequired returns an error when no reminder ID is provided.

Returns:

  • error: "provide a reminder ID or use --all"

func InvalidID

func InvalidID(value string) error

InvalidID returns an error for an unparseable ID string.

Parameters:

  • value: the invalid ID string.

Returns:

  • error: "invalid ID <value>"

func NotFound

func NotFound(id int) error

NotFound returns an error when no reminder matches the given ID.

Parameters:

  • id: the ID that was not found.

Returns:

  • error: "no reminder with ID <id>"

func Parse

func Parse(cause error) error

Parse wraps a failure to parse the reminders file.

Parameters:

  • cause: the underlying parse error.

Returns:

  • error: "parse reminders: <cause>"

func Read

func Read(cause error) error

Read wraps a failure to read the reminders file.

Parameters:

  • cause: the underlying read error.

Returns:

  • error: "read reminders: <cause>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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