code: func TypeGroupsByBucket(bucket TypeBucket) []WorkItemTypeGroup {
  	res := []WorkItemTypeGroup{}
  	for _, t := range TypeGroups() {
  		if t.Bucket == bucket {
  			res = append(res, t)
  		}
  	}
  	return res
  }
docs: // TypeGroupsByBucket returns all type groups which fall into the given bucket