From 5e83abb73bd78b6de3e261d750e28d8ef96469f4 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Wed, 19 Jan 2022 07:52:40 -0600 Subject: [PATCH] Add SetTag function --- timer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/timer.go b/timer.go index da823a5..6c346b7 100644 --- a/timer.go +++ b/timer.go @@ -212,6 +212,10 @@ func (timer *Timer) HasProject(project string) bool { return false } +func (timer *Timer) SetTag(name, val string) { + timer.AdditionalTags[name] = val +} + func (timer *Timer) HasTag(name string) bool { _, ok := timer.AdditionalTags[name] return ok