Documentation ¶
Index ¶
- func ContainsAll[C comparable](haystack []C, needles ...C) bool
- func ContainsAny[C comparable](haystack []C, needles ...C) bool
- func HasString(ss []string, s string) bool
- func HasUint64(ss []uint64, s uint64) bool
- func IntersectStrings(a []string, b []string) []string
- func Keys(m interface{}) (kk []string)
- func PluckString(ss []string, ff ...string) (o []string)
- func ToStringBoolMap(s []string) (h map[string]bool)
- func ToUint64BoolMap(u []uint64) (h map[uint64]bool)
- type UInt64s
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶
func ContainsAll[C comparable](haystack []C, needles ...C) bool
func ContainsAny ¶
func ContainsAny[C comparable](haystack []C, needles ...C) bool
func IntersectStrings ¶
func Keys ¶
func Keys(m interface{}) (kk []string)
Keys returns sorted map keys
If input is not a map it will return an empty slice
func PluckString ¶
RemoveString removes one or more strings form the input slice
func ToStringBoolMap ¶
func ToUint64BoolMap ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.