Add SetTag function

This commit is contained in:
Brian Buller 2022-01-19 07:52:40 -06:00
parent d0c9ea8f27
commit 5e83abb73b

View File

@ -212,6 +212,10 @@ func (timer *Timer) HasProject(project string) bool {
return false return false
} }
func (timer *Timer) SetTag(name, val string) {
timer.AdditionalTags[name] = val
}
func (timer *Timer) HasTag(name string) bool { func (timer *Timer) HasTag(name string) bool {
_, ok := timer.AdditionalTags[name] _, ok := timer.AdditionalTags[name]
return ok return ok