Update k8s.io/gengo to 955ffa8fcfc983717cd9de5d2a1e9f5c465f4376

This commit is contained in:
Alvaro Aleman
2019-08-13 23:49:12 +02:00
parent d2eecfe2ef
commit c4fd0d4f99
18 changed files with 58 additions and 21 deletions

View File

@@ -46,17 +46,19 @@ func ByteKeySet(theMap interface{}) Byte {
}
// Insert adds items to the set.
func (s Byte) Insert(items ...byte) {
func (s Byte) Insert(items ...byte) Byte {
for _, item := range items {
s[item] = Empty{}
}
return s
}
// Delete removes all items from the set.
func (s Byte) Delete(items ...byte) {
func (s Byte) Delete(items ...byte) Byte {
for _, item := range items {
delete(s, item)
}
return s
}
// Has returns true if and only if item is contained in the set.