diff options
| author | ewy <ewy0@protonmail.com> | 2026-03-31 18:14:56 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-03-31 18:14:56 +0200 |
| commit | 4b082851542cf8b546e3fbacaf0b27a7db5b80eb (patch) | |
| tree | 93e1e94eb31a7b8ad7273272e680ccd5d2d0948a /storage | |
| parent | d4e6d4905b1074ebcb6d082fadf50cc2ed80493d (diff) | |
fix layout and info
Diffstat (limited to 'storage')
| -rw-r--r-- | storage/link.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/link.go b/storage/link.go index f334f42..6f0a0c3 100644 --- a/storage/link.go +++ b/storage/link.go @@ -61,3 +61,8 @@ func (l Link) Valid() error { return nil } + +func (l Link) MinutesLeft() int { + return int(l.OpensFrom.Sub(time.Now()).Minutes()) + +} |
