func (u KBSet) Size() int {
	return len(u.kbSlice)
}
Size returns the size of the set (number of updates).
package main
import (
	"fmt"
	"strings"
	"github.com/google/glazier/go/helpers"
)
type KBSet struct {
	kbSlice []string
	kbMap   map[string]bool
}
func NewKBSet(kbList string) KBSet {
	return NewKBSetFromSlice(helpers.StringToSlice(kbList))
}
func NewKBSetFromSlice(kbSlice []string) KBSet {
	kbMap := make(map[string]bool)
	for _, kb := range kbSlice {
		kb = strings.ReplaceAll(strings.ToLower(kb), "kb", "")
		kbMap[kb] = true
	}
	return KBSet{
		kbSlice: kbSlice,
		kbMap:   kbMap,
	}
}
func (u KBSet) Search(ids []string) bool {
	for _, v := range ids {
		v = strings.ReplaceAll(strings.ToLower(v), "kb", "")
		if u.kbMap[v] {
			return true
		}
	}
	return false
}