Skip to content
Myr

Update example in README to use tea.Every

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent d503d5d · Browse files · 2 files+6 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−9 removed

  • other:+6 added−9 removed

2 files+6 added−9 removed

modified:README.md+5 added-8 removed
modified:subscriptions.go+1 added-1 removed
2 unmodified lines
3import (4 "time"5)67// NewEverMsg is used by Every to create a new message. It contains the time7// NewEveryMsg is used by Every to create a new message. It contains the time8// at which the timer finished.9type NewEveryMsg func(time.Time) Msg1011// Every is a subscription that ticks with the system clock at the given
14 unmodified lines