Help us shape the future of Go! Take the 2026 Go Developer Survey

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: 0

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