Entry returns a snapshot of the given entry, or nil if it couldn't be found.
(id EntryID)
| 192 | |
| 193 | // Entry returns a snapshot of the given entry, or nil if it couldn't be found. |
| 194 | func (c *Cron) Entry(id EntryID) Entry { |
| 195 | for _, entry := range c.Entries() { |
| 196 | if id == entry.ID { |
| 197 | return entry |
| 198 | } |
| 199 | } |
| 200 | return Entry{} |
| 201 | } |
| 202 | |
| 203 | // Remove an entry from being run in the future. |
| 204 | func (c *Cron) Remove(id EntryID) { |