remind

package module
v0.0.0-...-8ccd21c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-remind

A Go library for parsing Slack's /remind style commands

Documentation

Index

Constants

View Source
const Me = User("me")

Variables

View Source
var ErrNoDuration = errors.New("No duration found")

Functions

func ParseDuration

func ParseDuration(dur string) (time.Duration, error)

Types

type Parser

type Parser interface {
	Parse(s string) (*Reminder, error)
}

func New

func New() Parser

type Reminder

type Reminder struct {
	At      time.Time
	Every   time.Duration
	Message string
	Target  Target
	// contains filtered or unexported fields
}

func Parse

func Parse(s string) (*Reminder, error)

type Target

type Target interface {
	ID() string
}

type User

type User string

func (User) ID

func (u User) ID() string

Directories

Path Synopsis
cmd
remind command

Jump to

Keyboard shortcuts

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