Add SetTag function
This commit is contained in:
parent
d0c9ea8f27
commit
5e83abb73b
4
timer.go
4
timer.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user