|
|
@ -106,9 +106,7 @@ func (s *Set) KeysInt() []int {
|
|
|
|
var keys []int
|
|
|
|
var keys []int
|
|
|
|
|
|
|
|
|
|
|
|
for key := range s.data {
|
|
|
|
for key := range s.data {
|
|
|
|
if intKey, ok := key.(int); !ok {
|
|
|
|
if intKey, ok := key.(int); ok {
|
|
|
|
continue
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -121,9 +119,7 @@ func (s *Set) KeysInt64() []int64 {
|
|
|
|
var keys []int64
|
|
|
|
var keys []int64
|
|
|
|
|
|
|
|
|
|
|
|
for key := range s.data {
|
|
|
|
for key := range s.data {
|
|
|
|
if intKey, ok := key.(int64); !ok {
|
|
|
|
if intKey, ok := key.(int64); ok {
|
|
|
|
continue
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -136,9 +132,7 @@ func (s *Set) KeysUint() []uint {
|
|
|
|
var keys []uint
|
|
|
|
var keys []uint
|
|
|
|
|
|
|
|
|
|
|
|
for key := range s.data {
|
|
|
|
for key := range s.data {
|
|
|
|
if intKey, ok := key.(uint); !ok {
|
|
|
|
if intKey, ok := key.(uint); ok {
|
|
|
|
continue
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -151,9 +145,7 @@ func (s *Set) KeysUint64() []uint64 {
|
|
|
|
var keys []uint64
|
|
|
|
var keys []uint64
|
|
|
|
|
|
|
|
|
|
|
|
for key := range s.data {
|
|
|
|
for key := range s.data {
|
|
|
|
if intKey, ok := key.(uint64); !ok {
|
|
|
|
if intKey, ok := key.(uint64); ok {
|
|
|
|
continue
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
keys = append(keys, intKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -166,9 +158,7 @@ func (s *Set) KeysStr() []string {
|
|
|
|
var keys []string
|
|
|
|
var keys []string
|
|
|
|
|
|
|
|
|
|
|
|
for key := range s.data {
|
|
|
|
for key := range s.data {
|
|
|
|
if strKey, ok := key.(string); !ok {
|
|
|
|
if strKey, ok := key.(string); ok {
|
|
|
|
continue
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
keys = append(keys, strKey)
|
|
|
|
keys = append(keys, strKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|