// Tag will add a tag when creating a job.
Tag will add a tag when creating a job.
// Tag will add a tag when creating a job .
func (s *Scheduler) Tag(t ...string) *Scheduler {
	job := s.getCurrentJob()
	if s.tags != nil {
		for _, tag := range t {
			if _, ok := s.tags[tag]; ok {
				job.error = wrapOrError(job.error, ErrTagsUnique(tag))
				return s
			}
			s.tags[tag] = struct{}{}
		}
	}
	job.tags = t
	return s
}
func ( s * Scheduler ) Tag ( t ... string ) * Scheduler { job := s . getCurrentJob ( ) if s . tags != nil { for _ , tag := range t { if _ , ok := s . tags [ tag ] ; ok { job . error = wrapOrError ( job . error , ErrTagsUnique ( tag ) ) return s } s . tags [ tag ] = struct { } { } } } job . tags = t return s }
Tag will add a tag when creating a job.
Tag will add a tag when creating a job .